morpheus_network::http

Module headers

Source
Expand description

HTTP header management.

Case-insensitive header storage and retrieval for HTTP requests and responses.

§Examples

use morpheus_network::http::Headers;

let mut headers = Headers::new();
headers.set("Content-Type", "application/json");
assert_eq!(headers.get("content-type"), Some("application/json"));

Structs§

  • A single HTTP header (name-value pair).
  • Collection of HTTP headers.