Registry / serialization / http-serde

http-serde

JSON →
library2.1.1rscratesunverified

Serde support for the http crate. (De)serialize HeaderMap, Uri, Method, StatusCode.

# Cargo.toml [dependencies] http-serde = "2.1.1"
INSTALL
IMPORT
SIG · HTTP-SERDE
H
http-serde
serializationrustv2.1.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 http_serde::HeaderMap;

Serialize an HTTP HeaderMap to JSON.

use http_serde::HeaderMap; use serde_json; fn main() { let headers = HeaderMap::new(); let json = serde_json::to_string(&headers).unwrap(); println!("{}", json); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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