request
- request(t: type, contentType: str = 'application/json', encoding: str = None, description: str = None, required: bool = True) Callable
Indicates the content that a request handler method expects (aka. “request body”)
- Parameters:
t (type) – The Python type that is expected.
contentType (str) – The content type that is expected.
encoding (str) – Not Supported, stubbed for future. This is used to indicate an encoding such as multipart mime.
description (str) – An optional description for the expected content.