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 ResponseAdapter(ABC): (source)
Known subclasses: orionis.http.adapters.response.asgi.ASGIResponseAdapter, orionis.http.adapters.response.rsgi.RSGIResponseAdapter
Write abstraction for sending an HTTP response over a protocol transport.
Decouples response-sending logic from the underlying server protocol, allowing the framework to operate against a single unified interface regardless of whether the server speaks ASGI or RSGI.
| Async Method | send |
Send the HTTP response using the underlying protocol transport. |
| Class Variable | __slots__ |
Undocumented |
async def send(self, adapter:
TransportAdapter, response: Response, *args: object, **kwargs: object):
(source)
¶
overridden in
orionis.http.adapters.response.asgi.ASGIResponseAdapter, orionis.http.adapters.response.rsgi.RSGIResponseAdapterSend the HTTP response using the underlying protocol transport.
| Parameters | |
adapter:TransportAdapter | Transport adapter containing request information used to inspect the HTTP method and headers. |
response:Response | Response object to be serialised and sent back to the client. |
*args:object | Protocol-specific positional arguments (e.g. ASGI send callable or RSGI HTTPProtocol instance). |
**kwargs:object | Protocol-specific keyword arguments reserved for future use. |
| Returns | |
None | Sends the response via the protocol transport and returns nothing. |
overridden in
orionis.http.adapters.response.asgi.ASGIResponseAdapter, orionis.http.adapters.response.rsgi.RSGIResponseAdapterUndocumented