minos.networks.http.ports

Classes

HttpPort

Http Port class.

RestService

Rest Service class.

class HttpPort[source]

Bases: Port

Http Port class.

__init__(**kwargs)[source]
connector

Get the port connector.

Returns

A HttpConnector instance.

property context: aiomisc.context.Context
set_loop(loop)
Parameters

loop (AbstractEventLoop) –

Return type

None

async start()

Start the port execution.

Returns

This method does not return anything.

Return type

None

property start_event: asyncio.locks.Event
async stop(err=None)

Stop the port execution.

Parameters

err (Optional[Exception]) – Optional exception that stopped the execution.

Returns

This method does not return anything.

Return type

None

class RestService[source]

Bases: HttpPort

Rest Service class.

__init__(**kwargs)[source]
connector

Get the port connector.

Returns

A HttpConnector instance.

property context: aiomisc.context.Context
set_loop(loop)
Parameters

loop (AbstractEventLoop) –

Return type

None

async start()

Start the port execution.

Returns

This method does not return anything.

Return type

None

property start_event: asyncio.locks.Event
async stop(err=None)

Stop the port execution.

Parameters

err (Optional[Exception]) – Optional exception that stopped the execution.

Returns

This method does not return anything.

Return type

None