Struct tinyhttp_internal::codegen::route::BasicPostRoute
source · pub struct BasicPostRoute { /* private fields */ }
Implementations§
source§impl BasicPostRoute
impl BasicPostRoute
pub fn new() -> BasicPostRoute
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_is_args(self, is_args: bool) -> Self
pub fn set_body(self, body: fn() -> Vec<u8>) -> Self
pub fn set_body_with(self, body: fn(_: Request) -> Vec<u8>) -> Self
pub fn set_body_with_res(self, body: fn(_: Request) -> Response) -> Self
pub fn set_is_ret_res(self, is_ret_res: bool) -> Self
Trait Implementations§
source§impl Clone for BasicPostRoute
impl Clone for BasicPostRoute
source§fn clone(&self) -> BasicPostRoute
fn clone(&self) -> BasicPostRoute
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