crux_http 0.17.0

HTTP capability for use with crux_core
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod decode;
#[allow(clippy::module_inception)]
mod response;
mod response_async;

pub use self::{response::Response, response_async::ResponseAsync};

pub(crate) fn new_headers() -> http_types::Headers {
    // http-types doesn't seem to let you construct a Headers, very annoying.
    // So here's a horrible hack to do it.
    http_types::Request::new(http_types::Method::Get, "https://thisisveryannoying.com")
        .as_ref()
        .clone()
}