Type Alias wasmtime_wasi_http::bindings::http::types::Headers

source ·
pub type Headers = Fields;
Expand description

Headers is an alias for Fields.

Aliased Type§

enum Headers {
    Ref {
        parent: u32,
        get_fields: for<'a> fn(_: &'a mut (dyn Any + 'static)) -> &'a mut HeaderMap,
    },
    Owned {
        fields: HeaderMap,
    },
}

Variants§

§

Ref

A reference to the fields of a parent entry.

Fields

§parent: u32

The parent resource rep.

§get_fields: for<'a> fn(_: &'a mut (dyn Any + 'static)) -> &'a mut HeaderMap

The function to get the fields from the parent.

§

Owned

An owned version of the fields.

Fields

§fields: HeaderMap

The fields themselves.