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

Known subclasses: orionis.http.BaseMiddleware

View In Hierarchy

Define the base contract for all HTTP middlewares in the pipeline.

Middlewares are executed in a chain (onion model), where each middleware can inspect or modify the request, delegate to the next middleware in the chain, and inspect or modify the response.

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.

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
ResponseFinal HTTP response object.
__slots__: tuple = (source)

Undocumented