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 IHTTPRequestPrinter(ABC): (source)
Known subclasses: orionis.console.output.http_request.HTTPRequestPrinter
Undocumented
| Method | print |
Print a formatted HTTP request line to stdout or queue. |
| Method | set |
Set whether to enable or disable console output for HTTP requests. |
| Async Method | start |
Start the background print worker. |
| Method | start |
Capture the current high-resolution timestamp for request timing. |
| Async Method | stop |
Drain remaining output and stop the background worker. |
orionis.console.output.http_request.HTTPRequestPrinterPrint a formatted HTTP request line to stdout or queue.
Computes the elapsed duration from start_time, builds an ANSI-coloured output line, and either enqueues it for the background worker (if start() was called) or writes directly to stdout.
| Parameters | |
adapter:TransportAdapter | The transport adapter providing method and path information. |
response:Response | The HTTP response object. |
| Returns | |
None | This method does not return a value. |
orionis.console.output.http_request.HTTPRequestPrinterStart the background print worker.
Creates the internal async queue and spawns a background task to drain queued output lines. Must be called once from an async context before the first request is handled.
| Returns | |
None | This method does not return a value. |
orionis.console.output.http_request.HTTPRequestPrinterCapture the current high-resolution timestamp for request timing.
Returns None immediately if printing is disabled (setEnabled(enabled=False) was called), avoiding unnecessary work.
| Returns | |
float | None | A high-resolution monotonic timestamp from time.perf_counter(), or None if output is disabled. |
orionis.console.output.http_request.HTTPRequestPrinterDrain remaining output and stop the background worker.
Waits for every queued line to be written before cancelling the worker task. Safe to call even if start() was never invoked.
| Returns | |
None | This method does not return a value. |