header
- header(name: str, t: type = <class 'str'>, description: str = None, required: bool = False, deprecated: bool = False) Callable
Indicates that a request handler expects a particular header.
- Parameters:
name (str) – REQUIRED. The header name that is expected.
t (type) – If the header represents a particular data type. Encoding/Decoding the header remains the responsibility of the application/server. Default is
str.description (str) – An optional description for the header or its content.
required (bool) –
TrueIf the header is required. Default isFalse.deprecated (bool) –
TrueIf the header is deprecated. Default isFalse.