Registry / networking / headers

headers

JSON →
library0.4.1rscratesunverified

Typed HTTP headers for Rust, providing strongly-typed header types.

# Cargo.toml [dependencies] headers = "0.4.1"
INSTALL
IMPORT
SIG · HEADERS
H
headers
networkingrustv0.4.1
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.

HeaderMap
use headers::HeaderMap;

Creates a HeaderMap and inserts a Content-Type header.

use headers::HeaderMap; fn main() { let mut headers = HeaderMap::new(); headers.insert("Content-Type", "text/html".parse().unwrap()); println!("Headers: {:?}", headers); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
headers — cargo add headers · libregistry