pub trait HttpContext: Context {
Show 57 methods
// Provided methods
fn on_http_request_headers(
&mut self,
_num_headers: usize,
_end_of_stream: bool,
) -> Action { ... }
fn get_http_request_headers(&self) -> Vec<(String, String)> { ... }
fn get_http_request_headers_bytes(&self) -> Vec<(String, Bytes)> { ... }
fn set_http_request_headers(&self, headers: Vec<(&str, &str)>) { ... }
fn set_http_request_headers_bytes(&self, headers: Vec<(&str, &[u8])>) { ... }
fn get_http_request_header(&self, name: &str) -> Option<String> { ... }
fn get_http_request_header_bytes(&self, name: &str) -> Option<Bytes> { ... }
fn set_http_request_header(&self, name: &str, value: Option<&str>) { ... }
fn set_http_request_header_bytes(&self, name: &str, value: Option<&[u8]>) { ... }
fn add_http_request_header(&self, name: &str, value: &str) { ... }
fn add_http_request_header_bytes(&self, name: &str, value: &[u8]) { ... }
fn on_http_request_body(
&mut self,
_body_size: usize,
_end_of_stream: bool,
) -> Action { ... }
fn get_http_request_body(
&self,
start: usize,
max_size: usize,
) -> Option<Bytes> { ... }
fn set_http_request_body(&self, start: usize, size: usize, value: &[u8]) { ... }
fn on_http_request_trailers(&mut self, _num_trailers: usize) -> Action { ... }
fn get_http_request_trailers(&self) -> Vec<(String, String)> { ... }
fn get_http_request_trailers_bytes(&self) -> Vec<(String, Bytes)> { ... }
fn set_http_request_trailers(&self, trailers: Vec<(&str, &str)>) { ... }
fn set_http_request_trailers_bytes(&self, trailers: Vec<(&str, &[u8])>) { ... }
fn get_http_request_trailer(&self, name: &str) -> Option<String> { ... }
fn get_http_request_trailer_bytes(&self, name: &str) -> Option<Bytes> { ... }
fn set_http_request_trailer(&self, name: &str, value: Option<&str>) { ... }
fn set_http_request_trailer_bytes(&self, name: &str, value: Option<&[u8]>) { ... }
fn add_http_request_trailer(&self, name: &str, value: &str) { ... }
fn add_http_request_trailer_bytes(&self, name: &str, value: &[u8]) { ... }
fn resume_http_request(&self) { ... }
fn reset_http_request(&self) { ... }
fn on_http_response_headers(
&mut self,
_num_headers: usize,
_end_of_stream: bool,
) -> Action { ... }
fn get_http_response_headers(&self) -> Vec<(String, String)> { ... }
fn get_http_response_headers_bytes(&self) -> Vec<(String, Bytes)> { ... }
fn set_http_response_headers(&self, headers: Vec<(&str, &str)>) { ... }
fn set_http_response_headers_bytes(&self, headers: Vec<(&str, &[u8])>) { ... }
fn get_http_response_header(&self, name: &str) -> Option<String> { ... }
fn get_http_response_header_bytes(&self, name: &str) -> Option<Bytes> { ... }
fn set_http_response_header(&self, name: &str, value: Option<&str>) { ... }
fn set_http_response_header_bytes(&self, name: &str, value: Option<&[u8]>) { ... }
fn add_http_response_header(&self, name: &str, value: &str) { ... }
fn add_http_response_header_bytes(&self, name: &str, value: &[u8]) { ... }
fn on_http_response_body(
&mut self,
_body_size: usize,
_end_of_stream: bool,
) -> Action { ... }
fn get_http_response_body(
&self,
start: usize,
max_size: usize,
) -> Option<Bytes> { ... }
fn set_http_response_body(&self, start: usize, size: usize, value: &[u8]) { ... }
fn on_http_response_trailers(&mut self, _num_trailers: usize) -> Action { ... }
fn get_http_response_trailers(&self) -> Vec<(String, String)> { ... }
fn get_http_response_trailers_bytes(&self) -> Vec<(String, Bytes)> { ... }
fn set_http_response_trailers(&self, trailers: Vec<(&str, &str)>) { ... }
fn set_http_response_trailers_bytes(&self, trailers: Vec<(&str, &[u8])>) { ... }
fn get_http_response_trailer(&self, name: &str) -> Option<String> { ... }
fn get_http_response_trailer_bytes(&self, name: &str) -> Option<Bytes> { ... }
fn set_http_response_trailer(&self, name: &str, value: Option<&str>) { ... }
fn set_http_response_trailer_bytes(&self, name: &str, value: Option<&[u8]>) { ... }
fn add_http_response_trailer(&self, name: &str, value: &str) { ... }
fn add_http_response_trailer_bytes(&self, name: &str, value: &[u8]) { ... }
fn resume_http_response(&self) { ... }
fn reset_http_response(&self) { ... }
fn send_http_response(
&self,
status_code: u32,
headers: Vec<(&str, &str)>,
body: Option<&[u8]>,
) { ... }
fn send_grpc_response(
&self,
grpc_status: GrpcStatusCode,
grpc_status_message: Option<&str>,
custom_metadata: Vec<(&str, &[u8])>,
) { ... }
fn on_log(&mut self) { ... }
}