Module provider

Source
Expand description

The low level server side API

Note that while using this API directly is fine, the standard way to provide data is to just register a crate::net_protocol protocol handler with an iroh::Endpoint.

Structs§

CountingReader
EventSender
A sender for provider events.
ProgressReader
ProgressWriter
Wrapper for a quinn::SendStream with additional per request information.
StreamContext
TransferStats
Statistics about a successful or failed transfer.

Enums§

Event
Provider progress events, to keep track of what the provider is doing.

Traits§

LazyEvent
Helper to lazyly create an Event, in the case that the event creation is expensive and we want to avoid it if the progress sender is disabled.

Functions§

handle_connection
Handle a single connection.
handle_get
Handle a single get request.
handle_get_many
Handle a single get request.
handle_observe
Handle a single push request.
handle_push
Handle a single push request.
read_request
Read the request from the getter.