minos.networks.http.connectors
Classes
- class HttpConnector[source]
Bases:
HttpConnector
,InjectableMixin
,Generic
[RawRequest
,RawResponse
]- async start()[source]
Start the connector.
- Returns
This method does not return anything.
- Return type
None
- async stop()[source]
Stop the connector.
- Returns
This method does not return anything.
- Return type
None
- mount_routes()[source]
Mount the routes given by the adapter.
- Returns
This method does not return anything.
- Return type
None
- property routes: dict[minos.networks.decorators.definitions.http.abc.HttpEnrouteDecorator, collections.abc.Callable[[minos.networks.requests.abc.Request], Union[minos.networks.requests.abc.Response, NoneType, Awaitable[Optional[minos.networks.requests.abc.Response]]]]]
Get the port.
- Returns
A
int
value.
- property adapter: minos.networks.http.adapters.HttpAdapter
Get the port.
- Returns
A
int
value.
- async destroy()
Destroy miscellaneous repository things.
- Returns
This method does not return anything.
- Return type
None
- classmethod from_config(config=None, **kwargs)
Build a new instance from config.
- Parameters
config (Optional[Union[Config, Path]]) – Config instance. If None is provided, default config is chosen.
kwargs – Additional named arguments.
- Returns
A instance of the called class.
- Return type
S
- async setup()
Setup miscellaneous repository things.
- Returns
This method does not return anything.
- Return type
None