http_request/response/type.rs
1use super::*;
2
3/// HTTP response headers — single-value `HashMap<String, String>`.
4pub type HttpResponseHeaders = HashMapXxHash3_64<String, String>;
5
6/// Raw response body bytes (alias for `Vec<u8>` to match `http-type`).
7pub type ResponseBody = Vec<u8>;
8
9/// Raw bytes of the full serialized HTTP response.
10pub type ResponseData = Vec<u8>;
11
12/// UTF-8 form of the full serialized HTTP response.
13pub type ResponseDataString = String;
14
15/// Construct an empty response header map.
16pub fn new_response_headers() -> HttpResponseHeaders {
17 hash_map_xx_hash3_64()
18}