auth-header
auth-header copied to clipboard
Deal with obscene HTTP `Authorization` and `WWW-Authenticate` headers.
[Authentication-Info](https://www.rfc-editor.org/rfc/rfc7616.html#page-14) headers are encoded in a similar way to `WWW-Authenticate` and `Authorization` headers (comma separated). The only difference appears to be that the `Authentication-Info` header lacks a scheme. Since most...
It eases tracking for some types of distribution (e.g. Debian packaging which I do) when module releases are tagged in git. Please consider tagging releases.
`normalize` can return `string | string[]` so it is possible to have params be arrays, if they occur multiple times.
This PR adds the `InvalidHeaderError` which inherits from `TypeError`. Throwing a custom error and exporting it allows a more precise error handling, since it's possible to know that the error...