Registry / networking / http-types

http-types

JSON →
library2.12.0rscratesunverified

Common types for HTTP operations including requests, responses, headers, and URIs.

# Cargo.toml [dependencies] http-types = "2.12.0"
INSTALL
IMPORT
SIG · HTTP-TYPES
H
http-types
networkingrustv2.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Request
use http_types::Request;

Creates an HTTP GET request with an Accept header.

use http_types::{Request, Method, Url}; let mut req = Request::new(Method::Get, Url::parse("https://example.com").unwrap()); req.insert_header("Accept", "application/json"); println!("Request: {:?}", req);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
http-types — cargo add http-types · libregistry