[][src]Trait envoy_sdk::extension::filter::network::DownstreamDataOps

pub trait DownstreamDataOps {
    fn downstream_data(
        &self,
        offset: usize,
        max_size: usize
    ) -> Result<Option<Bytes>>; }

An interface for manipulating data in the read buffer (data read from the downstream connection).

Required methods

fn downstream_data(
    &self,
    offset: usize,
    max_size: usize
) -> Result<Option<Bytes>>

Returns data from the read buffer.

Arguments

  • offset - offset to start reading data from.
  • max_size - maximum size of data to return.
Loading content...

Implementors

Loading content...