HTTP constants
npm install @knowdev/http`` bash`
npm install --save @knowdev/http
#### formatError(error:ProjectError)
Returns an object with a numeric status and and object data suitable for a JSON:API-complaint HTTP response
#### getHeaderFrom(headerKey:string, searchObject:object)
Case-insensitive search inside searchObject for headerKey. Also looks in header and headers child object of searchObject, if headerKey not found at top-level.
npm publish --access=public
| Version | Change |
| ------- | ------ |
| 1.2.0 | Catch errors thrown by getHeaderFrom(), minor upgrades and cleanup |HTTP.HEADER.SIGNATURE.ED25519
| 1.1.3 | Add , HTTP.HEADER.SIGNATURE.TIMESTAMP |HTTP.CODE.UNAUTHORIZED
| 1.1.2 | Add , HTTP.HEADER.PROJECT.SECRET |getHeaderFrom()
| 1.1.1 | Add function (1.1.0` had broken export) |
| 1.0.0 | Initial release of constants only |
All rights reserved. Safe for use around pets.