AttributesBinding

Trait AttributesBinding 

Source
pub trait AttributesBinding {
    // Required methods
    fn extract_headers(&self) -> HashMap<String, String>;
    fn extract_header(&self, key: &str) -> Option<String>;

    // Provided methods
    fn extract_query_params(&self) -> HashMap<String, String> { ... }
    fn method(&self) -> Option<String> { ... }
    fn path(&self) -> Option<String> { ... }
    fn uri(&self) -> Option<String> { ... }
    fn remote_address(&self) -> Option<String> { ... }
    fn local_address(&self) -> Option<String> { ... }
    fn query_string(&self) -> Option<String> { ... }
    fn scheme(&self) -> Option<String> { ... }
    fn version(&self) -> Option<String> { ... }
    fn status_code(&self) -> Option<u32> { ... }
}
Expand description

Binding for the top-level attributes variable.

Required Methods§

Source

fn extract_headers(&self) -> HashMap<String, String>

Returns the entire headers map.

Source

fn extract_header(&self, key: &str) -> Option<String>

Returns a single header.

Provided Methods§

Source

fn extract_query_params(&self) -> HashMap<String, String>

Returns a map with the query parameters.

Source

fn method(&self) -> Option<String>

Returns the attributes.method value.

Source

fn path(&self) -> Option<String>

Returns the attributes.path value.

Source

fn uri(&self) -> Option<String>

Returns the uri value.

Source

fn remote_address(&self) -> Option<String>

Returns the attributes.remoteAddress value.

Source

fn local_address(&self) -> Option<String>

Returns the attributes.localAddress value.

Source

fn query_string(&self) -> Option<String>

Returns the attributes.queryString value.

Source

fn scheme(&self) -> Option<String>

Returns the attributes.scheme value.

Source

fn version(&self) -> Option<String>

Returns the attributes.version value.

Source

fn status_code(&self) -> Option<u32>

Returns the attributes.statusCode value.

Implementations on Foreign Types§

Source§

impl AttributesBinding for HttpClientResponse

Implementors§