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

Base class for HTTP middleware implementations.

Async Method handle Process an incoming HTTP request and delegate to next handler.
Class Variable __slots__ Undocumented
async def handle(self, request: Request, call_next: NextCallable) -> Response: (source)

Process an incoming HTTP request and delegate to next handler.

Subclasses must override this method to add before/after logic, middleware-specific handling, or early returns. This base implementation raises NotImplementedError to enforce proper implementation in subclasses.

Parameters
request:RequestIncoming HTTP request instance.
call_next:NextCallableNo-arg async callable that advances to the next middleware or final route handler in the pipeline.
Returns
ResponseHTTP response object returned by the next handler.
Raises
NotImplementedErrorAlways raised as subclasses must implement this method.