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
Undocumented
| Method | __apply |
Write the Access-Control-Allow-Credentials header if needed. |
| Method | __apply |
Write the Access-Control-Allow-Origin (and Vary) headers. |
| Method | __init__ |
Initialize the middleware with the given CORS configuration. |
| Method | __is |
Validate whether an origin is allowed. |
| Method | __is |
Determine whether the request is a CORS preflight. |
| Method | __merge |
Append a directive to the Vary header without overwriting it. |
| Method | after |
Apply CORS headers to actual (non-preflight) responses. |
| Method | before |
Intercept preflight requests and return an early response. |
| Constant | ALL |
Undocumented |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | __allow |
Undocumented |
| Instance Variable | __allow |
Undocumented |
| Instance Variable | __allow |
Undocumented |
| Instance Variable | __allow |
Undocumented |
| Instance Variable | __allow |
Undocumented |
| Instance Variable | __allow |
Undocumented |
| Instance Variable | __allow |
Undocumented |
| Instance Variable | __expose |
Undocumented |
| Instance Variable | __max |
Undocumented |
| Instance Variable | __origin |
Undocumented |
Apply CORS headers to actual (non-preflight) responses.
| Parameters | |
adapter:TransportAdapter | Unified transport abstraction for the current request. |
response:Response | The response produced by the application. |
| Returns | |
Response | The same response object, enriched with CORS headers. |
Intercept preflight requests and return an early response.
| Parameters | |
adapter:TransportAdapter | Unified transport abstraction for the current request. |
| Returns | |
Response | None | A 204 No Content preflight response, or None when the request is not a valid CORS preflight. |