http_type/header/
type.rs

1use crate::*;
2
3/// A type alias for a `HashMap<String, String>`, representing the headers of an HTTP request or response.
4/// This structure stores key-value pairs, where each key is the name of an HTTP header (e.g., `Content-Type`, `Host`),
5/// and the value is the corresponding header value (e.g., `application/json`, `example.com`).
6pub type HttpHeaderMap = HashMap<String, String>;
7/// A type alias for a `HashMap<&str, &str>`, representing the headers of an HTTP request or response.
8/// This structure stores key-value pairs, where each key is the name of an HTTP header (e.g., `Content-Type`, `Host`),
9/// and the value is the corresponding header value (e.g., `application/json`, `example.com`).
10pub type HttpHeaderSliceMap = HashMap<String, String>;