Struct uhttp_json_api::HttpRequest [] [src]

pub struct HttpRequest<'a, S: Read> { /* fields omitted */ }

Handles request routing and JSON deserialization.

Methods

impl<'a, S: Read> HttpRequest<'a, S>
[src]

[src]

Create a new HttpRequest over the given stream, backed by the given buffer.

The buffer is recommended to hold at least 8000 bytes.

[src]

Try to extract a version, method, and route.

[src]

Try to deserialize a JSON payload from the request body.

[src]

Consume the object and extract the underlying stream.