pub struct WorkerRequestParams<'a> {
pub request_body: Vec<u8>,
pub cookie_header: Option<&'a str>,
pub request_headers: Vec<(String, String)>,
pub method: &'a str,
pub uri: &'a str,
pub query_string: &'a str,
pub content_type: Option<&'a str>,
pub remote_addr: Option<&'a str>,
pub server_name: Option<&'a str>,
pub server_port: u16,
pub https: bool,
}Expand description
Parameters for resetting a request context in worker mode.
Fields§
§request_body: Vec<u8>§request_headers: Vec<(String, String)>§method: &'a str§uri: &'a str§query_string: &'a str§content_type: Option<&'a str>§remote_addr: Option<&'a str>§server_name: Option<&'a str>§server_port: u16§https: boolAuto Trait Implementations§
impl<'a> Freeze for WorkerRequestParams<'a>
impl<'a> RefUnwindSafe for WorkerRequestParams<'a>
impl<'a> Send for WorkerRequestParams<'a>
impl<'a> Sync for WorkerRequestParams<'a>
impl<'a> Unpin for WorkerRequestParams<'a>
impl<'a> UnsafeUnpin for WorkerRequestParams<'a>
impl<'a> UnwindSafe for WorkerRequestParams<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more