Struct rust_xfinal::HttpServer
source · [−]pub struct HttpServer { /* private fields */ }
Implementations
sourceimpl HttpServer
impl HttpServer
pub fn create(end: EndPoint, count: u16) -> Self
pub fn set_read_timeout(&mut self, millis: u32)
pub fn set_write_timeout(&mut self, millis: u32)
pub fn set_chunksize(&mut self, size: u32)
pub fn open_server_log(&mut self, open: bool)
pub fn set_max_body_size(&mut self, size: usize)
pub fn set_max_header_size(&mut self, size: usize)
pub fn set_read_buff_increase_size(&mut self, size: usize)
pub fn run(&mut self)
pub fn route<'a, T: SerializationMethods>(
&'a mut self,
methods: T,
path: &'a str
) -> RouterRegister<'_>
pub fn set_not_found<F>(&mut self, f: F) where
F: Router + Send + Sync + 'static,
Auto Trait Implementations
impl !RefUnwindSafe for HttpServer
impl Send for HttpServer
impl Sync for HttpServer
impl Unpin for HttpServer
impl !UnwindSafe for HttpServer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more