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
8/// A type alias for a `HashMap<&str, &str>`, representing the headers of an HTTP request or response.
9/// This structure stores key-value pairs, where each key is the name of an HTTP header (e.g., `Content-Type`, `Host`),
10/// and the value is the corresponding header value (e.g., `application/json`, `example.com`).
11pub type HttpHeaderSliceMap = HashMap<String, String>;