response_header#

class starlite.datastructures.response_header.ResponseHeader#

Bases: Header

Container type for a response header.

documentation_only: bool#

Defines the ResponseHeader instance as for OpenAPI documentation purpose only.

value: Any#

Value to set for the response header.

classmethod validate_value(value: Any, values: Dict[str, Any]) Any#

Ensure that either value is set or the instance is for documentation_only.