enums

class litestar.enums.CompressionEncoding

Bases: str, Enum

An Enum for supported compression encodings.

__new__(value)
class litestar.enums.HttpMethod

Bases: str, Enum

An Enum for HTTP methods.

__new__(value)
class litestar.enums.MediaType

Bases: str, Enum

An Enum for Content-Type header values.

__new__(value)
class litestar.enums.OpenAPIMediaType

Bases: str, Enum

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

__new__(value)
class litestar.enums.ParamType

Bases: str, Enum

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

__new__(value)
class litestar.enums.RequestEncodingType

Bases: str, Enum

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

__new__(value)
class litestar.enums.ScopeType

Bases: str, Enum

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

Notes

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

__new__(value)