jsonrpsee_core

Module http_helpers

Source
Available on crate feature http-helpers only.
Expand description

Shared HTTP utilities.

Structs§

Body
Default HTTP body used by jsonrpsee.

Enums§

HttpError
Represents error that can when reading with a HTTP body.

Functions§

read_body
Read data from a HTTP body and return the data if it is valid JSON and within the allowed size range.
read_header_value
Returns a string value when there is exactly one value for the given header.
read_header_values
Returns an iterator of all values for a given a header name

Type Aliases§

Request
HTTP request type.
Response
HTTP response type.