Trait proxy_sdk::HttpControl
source · pub trait HttpControl {
const TYPE: HttpType;
// Required method
fn attributes(&self) -> &Attributes;
// Provided methods
fn end_of_stream(&self) -> bool { ... }
fn resume(&self) { ... }
fn reset(&self) { ... }
fn send_http_response(
&self,
status_code: u32,
headers: &[(&str, &[u8])],
body: Option<&[u8]>
) -> Result<(), Status> { ... }
fn done(&self) { ... }
}
Expand description
Defines control functions for http data
Required Associated Constants§
Required Methods§
sourcefn attributes(&self) -> &Attributes
fn attributes(&self) -> &Attributes
Retrieve attributes for the http data
Provided Methods§
sourcefn end_of_stream(&self) -> bool
fn end_of_stream(&self) -> bool
If true
, this is the last block
Object Safety§
This trait is not object safe.