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
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 |
Undocumented |
overridden in
orionis.mcp.transport.policy.McpHttpPolicyValidate protocol connection metadata before admission and middleware.
| Parameters | |
adapter:TransportAdapter | Value supplied for adapter. |
| Returns | |
Response | None | Result of the operation described above. |
async def exception(self, exception:
Exception, request: Request | TransportAdapter) -> Response:
(source)
¶
overridden in
orionis.mcp.transport.policy.McpHttpPolicy