crux_http/response/mod.rs
1mod decode;
2#[allow(clippy::module_inception)]
3mod response;
4mod response_async;
5
6pub use self::{response::Response, response_async::ResponseAsync};
7
8pub(crate) fn new_headers() -> http_types::Headers {
9 // http-types doesn't seem to let you construct a Headers, very annoying.
10 // So here's a horrible hack to do it.
11 http_types::Request::new(http_types::Method::Get, "https://thisisveryannoying.com")
12 .as_ref()
13 .clone()
14}