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 IHttpTransport(ABC): (source)
Known subclasses: orionis.http.client.testing.fake.FakeContext, orionis.http.client.transports.httpx.HttpxTransport
Own the resources used to perform individual outbound requests.
The attempt context owns the lifetime of the response stream.
| Async Method | aclose |
Release this transport's resources on the owning event loop. |
| Method | open |
Open a single attempt and release its response on context exit. |
| Class Variable | __slots__ |
Leave storage for transport state to concrete implementations. |
overridden in
orionis.http.client.testing.fake.FakeContext, orionis.http.client.transports.httpx.HttpxTransportRelease this transport's resources on the owning event loop.
| Returns | |
None | Finish once the transport has released its resources. |
@abstractmethod
def open(self, request: PreparedRequest) -> AbstractAsyncContextManager[ TransportResponse]:
(source)
¶
overridden in
orionis.http.client.testing.fake.FakeContext, orionis.http.client.transports.httpx.HttpxTransportOpen a single attempt and release its response on context exit.
| Parameters | |
request:PreparedRequest | Prepared request for this attempt. |
| Returns | |
contextlib.AbstractAsyncContextManager[TransportResponse] | Context owning the response stream and its release. |