latest.ipv8.REST.network_endpoint

Module Contents

Classes

NetworkEndpoint

This endpoint is responsible for handing all requests regarding the state of the network.

class latest.ipv8.REST.network_endpoint.NetworkEndpoint

Bases: latest.ipv8.REST.base_endpoint.BaseEndpoint[latest.ipv8.types.IPv8]

This endpoint is responsible for handing all requests regarding the state of the network.

setup_routes() None

Register the names to make this endpoint callable.

async retrieve_peers(_: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response

Return a list of all known peers.