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

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

An interface for manipulating data in the write buffer (data to be written to the downstream connection).

Required methods

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

Returns data from the write buffer.

Arguments

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

Implementors

Loading content...