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

Constructor: _RSGIProxy(app)

View In Hierarchy

Delegate requests while the embedded server awaits lifecycle hooks explicitly.

Granian invokes the proxy inside the debugger's existing event loop.

Method __init__ Retain the application serving embedded RSGI connections.
Async Method __rsgi__ Forward a connection to its application handler.
Method __rsgi_del__ Leave shutdown to the coroutine surrounding the embedded server.
Method __rsgi_init__ Leave startup to the coroutine surrounding the embedded server.
Instance Variable app Application receiving RSGI requests from the embedded server.
def __init__(self, app: IApplication): (source)

Retain the application serving embedded RSGI connections.

Parameters
app:IApplicationApplication providing the RSGI request handler.
Returns
NoneStore the application used to handle incoming RSGI connections.
async def __rsgi__(self, scope: object, protocol: object) -> object: (source)

Forward a connection to its application handler.

Parameters
scope:objectGranian RSGI scope.
protocol:objectGranian protocol for this connection.
Returns
objectResult produced by the application handler.
def __rsgi_del__(self, loop: asyncio.AbstractEventLoop): (source)

Leave shutdown to the coroutine surrounding the embedded server.

Parameters
loop:asyncio.AbstractEventLoopRunning server loop.
Returns
NoneLet the surrounding coroutine drain application resources.
def __rsgi_init__(self, loop: asyncio.AbstractEventLoop): (source)

Leave startup to the coroutine surrounding the embedded server.

Parameters
loop:asyncio.AbstractEventLoopRunning server loop.
Returns
NoneLet the surrounding coroutine run application startup.

Application receiving RSGI requests from the embedded server.