Struct vertx_rust::http::HttpServer [−][src]
pub struct HttpServer<CM: 'static + ClusterManager + Send + Sync> {
pub port: u16,
// some fields omitted
}
Fields
port: u16
Implementations
pub fn get<OP>(&mut self, path: &str, op: OP) -> &mut Self where
OP: FnMut(Request<Body>, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn post<OP>(&mut self, path: &str, op: OP) -> &mut Self where
OP: FnMut(Request<Body>, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn put<OP>(&mut self, path: &str, op: OP) -> &mut Self where
OP: FnMut(Request<Body>, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn delete<OP>(&mut self, path: &str, op: OP) -> &mut Self where
OP: FnMut(Request<Body>, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn head<OP>(&mut self, path: &str, op: OP) -> &mut Self where
OP: FnMut(Request<Body>, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn patch<OP>(&mut self, path: &str, op: OP) -> &mut Self where
OP: FnMut(Request<Body>, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn options<OP>(&mut self, path: &str, op: OP) -> &mut Self where
OP: FnMut(Request<Body>, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn connect<OP>(&mut self, path: &str, op: OP) -> &mut Self where
OP: FnMut(Request<Body>, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
pub fn trace<OP>(&mut self, path: &str, op: OP) -> &mut Self where
OP: FnMut(Request<Body>, Arc<EventBus<CM>>) -> Result<Response<Body>, Error> + 'static + Send + Sync,
Auto Trait Implementations
impl<CM> !RefUnwindSafe for HttpServer<CM>
impl<CM> Send for HttpServer<CM>
impl<CM> Sync for HttpServer<CM>
impl<CM> Unpin for HttpServer<CM>
impl<CM> !UnwindSafe for HttpServer<CM>
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more