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

Known subclasses: orionis.mcp.transport.policy.McpHttpPolicy

View In Hierarchy

Customize endpoint framing without replacing routing or middleware.

Method before Validate protocol connection metadata before admission and middleware.
Async Method exception Report a failure and provide the endpoint's sanitized response.
Async Method response Adapt middleware and handler responses to the endpoint's wire format.
Class Variable __slots__ Undocumented
Class Variable monitor_disconnects Undocumented
def before(self, adapter: TransportAdapter) -> Response | None: (source)

Validate protocol connection metadata before admission and middleware.

Parameters
adapter:TransportAdapterValue supplied for adapter.
Returns
Response | NoneResult of the operation described above.
async def exception(self, exception: Exception, request: Request | TransportAdapter) -> Response: (source)

Report a failure and provide the endpoint's sanitized response.

Parameters
exception:ExceptionException being inspected or reported.
request:Request | TransportAdapterCurrent request and its trusted execution context.
Returns
ResponseResult of the operation described above.
async def response(self, response: Response) -> Response: (source)

Adapt middleware and handler responses to the endpoint's wire format.

Parameters
response:ResponseValue supplied for response.
Returns
ResponseResult of the operation described above.
monitor_disconnects: ClassVar[bool] = (source)

Undocumented