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.
class documentation
class IMediaTypeRegistry(ABC): (source)
Known subclasses: orionis.http.payload.media_types.MediaTypeRegistry
Define the contract for a media-type-to-parser registry.
Implementations map lowercased media-type strings to synchronous BodyParser callables and support non-destructive extension.
| Method | extend |
Return a new registry that merges parsers over a copy of self. |
| Method | get |
Return the parser registered for media_type, or None. |
| Method | register |
Add or replace the parser for media_type in place. |
| Class Variable | __slots__ |
Undocumented |
overridden in
orionis.http.payload.media_types.MediaTypeRegistryReturn a new registry that merges parsers over a copy of self.
| Parameters | |
parsers:dict[str, BodyParser] | Additional or replacement media-type-to-parser entries. |
| Returns | |
IMediaTypeRegistry | New registry containing all entries from self plus parsers. |
overridden in
orionis.http.payload.media_types.MediaTypeRegistryReturn the parser registered for media_type, or None.
| Parameters | |
mediastr | Case-insensitive media-type string. |
| Returns | |
BodyParser | None | The registered callable, or None if not found. |
overridden in
orionis.http.payload.media_types.MediaTypeRegistryAdd or replace the parser for media_type in place.
| Parameters | |
mediastr | Case-insensitive media-type string, e.g. "application/json". |
parser:BodyParser | Synchronous callable (bytes) -> object. |
| Returns | |
None | Undocumented |