2.12.ipv8.REST.network_endpoint

Module Contents

Classes

class 2.12.ipv8.REST.network_endpoint.NetworkEndpoint

Bases: 2.12.ipv8.REST.base_endpoint.BaseEndpoint[2.12.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) 2.12.ipv8.REST.base_endpoint.Response

Return a list of all known peers.