starlite.enums#

class starlite.enums.HttpMethod#

Bases: str, Enum

An Enum for HTTP methods.

__new__(value)#
class starlite.enums.MediaType#

Bases: str, Enum

An Enum for Content-Type header values.

__new__(value)#
class starlite.enums.OpenAPIMediaType#

Bases: str, Enum

An Enum for OpenAPI specific response Content-Type header values.

__new__(value)#
class starlite.enums.RequestEncodingType#

Bases: str, Enum

An Enum for request Content-Type header values designating encoding formats.

__new__(value)#
class starlite.enums.ScopeType#

Bases: str, Enum

An Enum for the ‘http’ key stored under Scope.

Notes

  • asgi is used by Starlite internally and is not part of the specification.

__new__(value)#
class starlite.enums.ParamType#

Bases: str, Enum

An Enum for the types of parameters a request can receive.

__new__(value)#
class starlite.enums.CompressionEncoding#

Bases: str, Enum

An Enum for supported compression encodings.

__new__(value)#