Uses of Class
services.moleculer.web.middleware.HttpMiddleware
Packages that use HttpMiddleware
Package
Description
-
Uses of HttpMiddleware in services.moleculer.web
Fields in services.moleculer.web declared as HttpMiddlewareModifier and TypeFieldDescriptionprotected HttpMiddlewareApiGateway.lastMiddlewareLast middleware (custom error pages, HTTP-redirector, etc.)Fields in services.moleculer.web with type parameters of type HttpMiddlewareModifier and TypeFieldDescriptionprotected Set<HttpMiddleware> ApiGateway.globalMiddlewaresGlobal middlewares.Methods in services.moleculer.web that return HttpMiddlewareMethods in services.moleculer.web with parameters of type HttpMiddlewareModifier and TypeMethodDescriptionApiGateway.addRoute(String path, String serviceList, HttpMiddleware... middlewares) Define a route for a list of Service (eg. in the "service" the service's "action" action will available on "http://host:port/path/service/action").voidApiGateway.setLastMiddleware(HttpMiddleware lastMiddleware) voidApiGateway.use(HttpMiddleware... middlewares) Method parameters in services.moleculer.web with type arguments of type HttpMiddleware -
Uses of HttpMiddleware in services.moleculer.web.middleware
Subclasses of HttpMiddleware in services.moleculer.web.middlewareModifier and TypeClassDescriptionclassSimple middleware that provides HTTP BASIC Authentication support.classImplements server side https://www.w3.org/wiki/CORS support for Moleculer.classCustom error page (Error 404, 500, etc.) handler.classServer "/favicon.ico" HTTP requests.classThe HostNameFilter adds the ability to allow or block requests based on the host name of the client.classThe IpFilter Middleware adds the ability to allow or block requests based on the IP address of the client.classRefuses all requests with "Error 400 Not Found" message.classRate Limiter limits concurrent constant requests to the HTTP calls in the application.classRedirects all requests to the specified URL / location.classWrites request headers and response headers + response body into the log.classCompresses body of REST responses.classAdds static HTTP-headers to the response message.classAdds a header "X-Response-Time" to the response, containing the time taken in MILLISECONDS to process the request.classMiddleware that will timeout requests if the response has not been written after the specified time.classService to serve files from within a given root directory.classURL-based content cache.classThis middleware adds "X-XSRF-TOKEN" header to responses. -
Uses of HttpMiddleware in services.moleculer.web.middleware.session
Subclasses of HttpMiddleware in services.moleculer.web.middleware.sessionModifier and TypeClassDescriptionclassGenerates Session Cookies, and sets the cookie header. -
Uses of HttpMiddleware in services.moleculer.web.router
Fields in services.moleculer.web.router with type parameters of type HttpMiddlewareModifier and TypeFieldDescriptionprotected final Set<HttpMiddleware> Mapping.installedMiddlewaresprotected final Set<HttpMiddleware> Route.routeMiddlewaresMethods in services.moleculer.web.router that return HttpMiddlewareMethods in services.moleculer.web.router with parameters of type HttpMiddlewareMethod parameters in services.moleculer.web.router with type arguments of type HttpMiddlewareModifier and TypeMethodDescriptionvoidRoute.started(services.moleculer.ServiceBroker broker, Set<HttpMiddleware> globalMiddlewares, boolean debug) voidRoute.stopped(Set<HttpMiddleware> globalMiddlewares, boolean debug) voidMapping.use(Collection<HttpMiddleware> middlewares) Route.use(Collection<HttpMiddleware> middlewares) Constructors in services.moleculer.web.router with parameters of type HttpMiddleware