GitHub

WithHeadersAnnotation

API reference for WithHeadersAnnotation.

What encode_to_with_headers records: the body and headers schemas (and their wire codecs) and the functions between them and the value.

Attributes

AttributeTypeDescription
bodyTop
headersTop
body_codecTop
headers_codecTop
decodeCallable[[Mapping[str, Any]], object]
encodeCallable[[Any], Mapping[str, Any]]

Functions

__init__

__init__(body, headers, body_codec, headers_codec, decode, encode) -> None
ParameterTypeDescription
bodyTop
headersTop
body_codecTop
headers_codecTop
decodeCallable[[Mapping[str, Any]], object]
encodeCallable[[Any], Mapping[str, Any]]