/gcloud-cloudfunctions-site-header-size

Node JS script to check a URLs header length

Primary LanguageJavaScriptOtherNOASSERTION

gcloud-cloudfunctions-site-header-size

Node JS script to check a URLs header length

Usage

You can run locally by running npm run start.

You can pass the data using curl using the following:

curl -X POST http://localhost:8111 -H "Content-Type: application/json" -H "Accept: application/json" -d '{"url":"https://sozodesign.co.uk"}'

Test Data

{
    "url": "https://sozodesign.co.uk"
}

Return Result

{
    "url": "https://sozodesign.co.uk",
    "headerLength": 1254,
    "headerLengthKilobytes": "1.22",
    "timestamp": "2023-12-13T21:05:22.828Z"
}

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository or CHANGELOG.md.