enums

class litestar.enums.CompressionEncoding[源代码]

基类:str, Enum

An Enum for supported compression encodings.

__new__(value)
class litestar.enums.HttpMethod[源代码]

基类:str, Enum

An Enum for HTTP methods.

__new__(value)
class litestar.enums.MediaType[源代码]

基类:str, Enum

An Enum for Content-Type header values.

__new__(value)
class litestar.enums.OpenAPIMediaType[源代码]

基类:str, Enum

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

__new__(value)
class litestar.enums.ParamType[源代码]

基类:str, Enum

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

__new__(value)
class litestar.enums.RequestEncodingType[源代码]

基类:str, Enum

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

__new__(value)
class litestar.enums.ScopeType[源代码]

基类:str, Enum

An Enum for the 'http' key stored under Scope.

备注

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

__new__(value)