A header key such as Authorization
or Content-Type
A value for the given header key like Basic MYAUTHKEY
or application/json
Static
createStatic
decodeDecodes a Header message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
Header
If the payload is not a reader or valid buffer
If required fields are missing
Static
decodeStatic
encodeStatic
encodeStatic
fromStatic
getStatic
toCreates a plain object from a Header message. Also converts values to other types if specified.
Header
Optional
options: IConversionOptionsConversion options
Plain object
Static
verify
An object that represents a header to add to an HTTP request.