Module coap_lite::block_handler
source · Expand description
General purpose implementation of block transfer support (RFC 7959).
Supports both Block1 and Block2 and is intended to be compliant with the standard but lenient to tolerate mixed use cases. In-memory caching of request and response bodies is used to achieve the generic interaction.
Structs§
- Implements block transfer by intercepting and caching requests and responses.
- The configuration for
BlockHandler
. - State that is maintained over several requests.
- The block option value.
- Cache key for uniquely identifying a request.
Functions§
- Similar to
Vec::splice
except that the Vec’s length may be extended to support the splice, but only up to an increase ofmaximum_reserve_len
(for security reasons if the data you’re receiving is untrusted ensure this is reasonably limited to avoid memory pressure denial of service attacks).