Libp2p.RequestResponse (libp2p_elixir v0.9.0)
Minimal request-response protocol support.
Summary
Functions
Returns a specification to start this module under a supervisor.
Handle an inbound stream for a registered protocol.
Register a handler for a protocol id.
Perform an outbound request over a connection.
Types
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Handle an inbound stream for a registered protocol.
Register a handler for a protocol id.
@spec request(pid() | atom(), pid(), proto_id(), binary(), keyword()) :: {:ok, binary()} | {:error, term()}
Perform an outbound request over a connection.
@spec start_link(keyword()) :: GenServer.on_start()