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

Constructor: _MiddlewareNext(terminal, args)

View In Hierarchy

Hold one request-local continuation that can be consumed only once.

Async Method __call__ Advance once, including when concurrent tasks call the continuation.
Method __init__ Bind a continuation to its fixed arguments.
Class Variable __slots__ Declare the instance attribute slots reserved by this class.
Instance Variable _args Arguments supplied when advancing the pipeline.
Instance Variable _called Called flag used by _MiddlewareNext.
Instance Variable _terminal Asynchronous next middleware or handler.
async def __call__(self) -> T: (source)

Advance once, including when concurrent tasks call the continuation.

Returns
orionis.http.ResponseResponse returned by the next middleware or handler.
Raises
RuntimeErrorIf the middleware already consumed this continuation.
def __init__(self, terminal: Callable, args: tuple): (source)

Bind a continuation to its fixed arguments.

Parameters
terminal:collections.abc.CallableAsynchronous next middleware or handler.
args:tupleArguments supplied when advancing the pipeline.
Returns
NoneThe continuation is ready for one invocation.
__slots__: tuple[str, ...] = (source)

Declare the instance attribute slots reserved by this class.

Arguments supplied when advancing the pipeline.

Called flag used by _MiddlewareNext.

_terminal = (source)

Asynchronous next middleware or handler.