ORIONIS API REFERENCE

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 FakeResponse: (source)

View In Hierarchy

Store immutable metadata and raw body for one simulated response.

The fake returns the stored bytes through the normal response reader.

Class Variable body Supply the exact bytes read by the response consumer.
Class Variable headers Preserve the supplied order and any duplicate response headers.
Class Variable status Specify the HTTP status code for the simulated response.

Supply the exact bytes read by the response consumer.

headers: tuple[tuple[str, str], ...] = (source)

Preserve the supplied order and any duplicate response headers.

Specify the HTTP status code for the simulated response.