A header key such as Authorization or Content-Type
A value for the given header key like Basic MYAUTHKEY or application/json
Converts this Header to JSON.
JSON object
StaticcreateStaticdecodeDecodes a Header message from the specified reader or buffer.
Reader or buffer to decode from
Optionallength: numberMessage length if known beforehand
Header
StaticdecodeDecodes a Header message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
Header
StaticencodeStaticencodeStaticfromCreates a Header message from a plain object. Also converts values to their respective internal types.
Plain object
Header
StaticgetGets the default type url for Header
OptionaltypeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
StatictoCreates a plain object from a Header message. Also converts values to other types if specified.
Header
Optionaloptions: IConversionOptionsConversion options
Plain object
StaticverifyVerifies a Header message.
Plain object to verify
null if valid, otherwise the reason why it is not
An object that represents a header to add to an HTTP request.