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
Collect one response within the request budget.
Network responses and fixtures pass through the same framing and size checks.
| Function | _field |
Split comma-delimited framing and encoding fields across header lines. |
| Function | _framed |
Resolve the HTTP/1.1 message length using this transport's framing rules. |
| Async Function | _read |
Bound each raw chunk before accumulation, including unframed bodies. |
| Async Function | read |
Run one attempt and log only administrative metadata about the result. |
| Constant | _LOG |
Record completed attempts with sanitized diagnostic fields. |
| Constant | _NO |
Identify final status codes whose responses omit a message body. |
| Constant | _PROTOCOL |
Classify invalid message framing as a transport protocol error. |
| Constant | _RESPONSE |
Identify the response as the source of a size-limit error. |
Bound each raw chunk before accumulation, including unframed bodies.
| Parameters | |
raw:TransportResponse | Open response whose stream belongs to the current attempt. |
limit:int | Maximum byte count allowed for this operation. |
| Returns | |
bytes | Complete raw body within the response budget. |
async def read_response(transport:
IHttpTransport, request: PreparedRequest) -> ClientResponse:
(source)
¶
Run one attempt and log only administrative metadata about the result.
| Parameters | |
transport:IHttpTransport | Transport responsible for this attempt. |
request:PreparedRequest | Authorized request submitted to the transport. |
| Returns | |
ClientResponse | Detached status, headers and bounded response body. |
Record completed attempts with sanitized diagnostic fields.
| Value |
|
Identify final status codes whose responses omit a message body.
| Value |
|