pub struct HttpServer;
Expand description
Http Server Structure.
Implementations§
source§impl HttpServer
impl HttpServer
Functions for Work HttpServer.
source§impl HttpServer
impl HttpServer
Functions for Edit Setting HttpServer
sourcepub fn set_map_code_page(map_code_page: Vec<(String, Response)>)
pub fn set_map_code_page(map_code_page: Vec<(String, Response)>)
Set Code Page Map. Default Value == Empty Vector. When Response.status_code == Code from the Map, the Page Associated with it Will be Loaded.
- map_code_page = Code Page Map.
sourcepub fn set_http(http: &'static str)
pub fn set_http(http: &'static str)
Set Http Type. Default Value == HTTP/1.1
- When Invalid HTTP, HTTP = 1.0.
- http = A New Http Type.
sourcepub fn set_server(server: TcpListener)
pub fn set_server(server: TcpListener)
Set Http Server. Default Value == None
- When Value == None, Will Load Error.
- server = Http Server.
sourcepub fn get_server<'a>() -> &'static TcpListener
pub fn get_server<'a>() -> &'static TcpListener
Set Http Server. Default Value == None
- When Value == None, Will Load Error.
- server = Http Server.
Auto Trait Implementations§
impl Freeze for HttpServer
impl RefUnwindSafe for HttpServer
impl Send for HttpServer
impl Sync for HttpServer
impl Unpin for HttpServer
impl UnwindSafe for HttpServer
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