Module iroh_bytes::protocol
source · Expand description
Protocol for communication between provider and client.
Structs
- A get request that allows the receiver to create a collection Custom request handlers will receive this struct destructured into handler arguments
- A request
- An infinite iterator of range specs
- A chunk range specification.
- A compressed sequence of range specs
- A Request token is an opaque byte sequence associated with a single request. Applications can use request tokens to implement request authorization, user association, etc.
- Unknown error_code, can not be converted into
Closed.
Enums
- Reasons to close connections or stop streams.
- A request to the provider
Constants
- The ALPN used with quic for the iroh bytes protocol.
- Maximum message size is limited to 100MiB for now.
Type Definitions
- Currently all requests are get requests. But that won’t always be the case.