Struct tinyhttp_internal::codegen::route::GetRouteWithReq
source · pub struct GetRouteWithReq { /* private fields */ }
Implementations§
source§impl GetRouteWithReq
impl GetRouteWithReq
pub fn new() -> GetRouteWithReq
pub fn set_path(self, path: &'static str) -> Self
pub fn set_method(self, method: Method) -> Self
pub fn set_wildcard(self, wildcard: String) -> Self
pub fn set_body(self, body: fn(_: Request) -> Vec<u8>) -> Self
pub fn get_body(&self) -> Option<fn(_: Request) -> Vec<u8>>
Trait Implementations§
source§impl Clone for GetRouteWithReq
impl Clone for GetRouteWithReq
source§fn clone(&self) -> GetRouteWithReq
fn clone(&self) -> GetRouteWithReq
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more