ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

module documentation

Provide http operations through UnsupportedMediaTypeException, Request.

Exception UnsupportedMediaTypeException Raise when the request Content-Type is unsupported by the parser.
Function _asgi_server_authority Format an ASGI server address for use as a URL authority.
Constant _BEARER_PREFIX Authorization scheme prefix recognized for bearer-token authentication.
Constant _BEARER_PREFIX_LEN Bearer prefix len value used by request.
Constant _MIME_JSON application/json.
Constant _MIME_MSGPACK application/msgpack.
Constant _MIME_MULTIPART multipart/form-data.
Constant _MIME_URLENCODED application/x-www-form-urlencoded.
def _asgi_server_authority(server: tuple[str, int | None], scheme: str) -> str: (source)

Format an ASGI server address for use as a URL authority.

Parameters
server:tuple[str, int | None]Server hostname or IP address and optional port.
scheme:strRequest URL scheme.
Returns
strHost with IPv6 brackets and a nondefault port when present.
_BEARER_PREFIX: str = (source)

Authorization scheme prefix recognized for bearer-token authentication.

Value
'bearer '
_BEARER_PREFIX_LEN: int = (source)

Bearer prefix len value used by request.

Value
7
_MIME_JSON: str = (source)

application/json.

Value
'application/json'
_MIME_MSGPACK: str = (source)

application/msgpack.

Value
'application/msgpack'
_MIME_MULTIPART: str = (source)

multipart/form-data.

Value
'multipart/form-data'
_MIME_URLENCODED: str = (source)

application/x-www-form-urlencoded.

Value
'application/x-www-form-urlencoded'