[][src]Trait envoy_sdk::host::http::client::HttpClientResponseOps

pub trait HttpClientResponseOps {
    fn http_call_response_headers(&self) -> Result<Vec<(String, String)>>;
fn http_call_response_body(
        &self,
        start: usize,
        max_size: usize
    ) -> Result<Option<Bytes>>;
fn http_call_response_trailers(&self) -> Result<Vec<(String, String)>>; }

An interface for accessing data of the HTTP response received by HttpClient.

Required methods

fn http_call_response_headers(&self) -> Result<Vec<(String, String)>>

fn http_call_response_body(
    &self,
    start: usize,
    max_size: usize
) -> Result<Option<Bytes>>

fn http_call_response_trailers(&self) -> Result<Vec<(String, String)>>

Loading content...

Implementations

impl dyn HttpClientResponseOps[src]

pub fn default() -> &'static dyn HttpClientResponseOps[src]

Returns the default implementation that interacts with Envoy through its ABI.

Implementors

Loading content...