Rust

request

Module

The incoming request: method, path, headers, cookies, query string, form, multipart and JSON bodies, and the client's address and scheme.

Contents

use utopia_http::Range;
Rust
pub struct Range

A Range or Content-Range header, parsed.

use utopia_http::Request;
Rust
pub struct Request

An incoming HTTP request.

Query, body and cookie params and uploaded files are parsed on first use.

Also implements Clone.
Rust
pub const SCHEMES: [&str; 4] = ["http", "https", "ws", "wss"]

Schemes a trusted proto header may name.