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 HttpxTransport(IHttpTransport): (source)
Constructor: HttpxTransport(http, pool)
Perform single attempts without redirects, cookies or ambient proxies.
TLS verification uses the trust store created for this transport.
| Method | __init__ |
Bind the loaded HTTPX module and its pool to this owner. |
| Async Method | _close |
Translate a failed release before a cancelled owner's reporter sees it. |
| Async Method | aclose |
Wait for the owning pool to release its sockets. |
| Async Method | open |
Open one attempt, protect cleanup and translate public wire errors. |
| Instance Variable | _http |
Retain the HTTPX module used to construct and classify attempts. |
| Instance Variable | _pool |
Own the asynchronous pool used for this worker's HTTP exchanges. |
Inherited from IHttpTransport:
| Class Variable | __slots__ |
Leave storage for transport state to concrete implementations. |
Bind the loaded HTTPX module and its pool to this owner.
| Parameters | |
http:ModuleType | HTTPX module loaded by the transport factory. |
pool:httpx.AsyncBaseTransport | HTTPX pool owned by this transport. |
| Returns | |
None | Initialize the transport with its existing worker-local pool. |
Translate a failed release before a cancelled owner's reporter sees it.
| Parameters | |
raw:httpx.Response | Open response whose stream belongs to the current attempt. |
| Returns | |
None | Finish after the response stream releases its connection. |
Wait for the owning pool to release its sockets.
| Returns | |
None | Complete after the pool releases its open connections. |
Open one attempt, protect cleanup and translate public wire errors.
| Parameters | |
request:PreparedRequest | Prepared request for this attempt. |
| Yields | |
TransportResponse | Metadata and raw stream owned by this attempt. |