Package services.moleculer.web.middleware
package services.moleculer.web.middleware
-
ClassDescriptionSimple middleware that provides HTTP BASIC Authentication support.Common interface for authenticating users by using BASIC Authentication.Implements server side https://www.w3.org/wiki/CORS support for Moleculer.Custom error page (Error 404, 500, etc.) handler.Server "/favicon.ico" HTTP requests.The HostNameFilter adds the ability to allow or block requests based on the host name of the client.Abstract class for all HTTP Middlewares.The IpFilter Middleware adds the ability to allow or block requests based on the IP address of the client.Refuses all requests with "Error 400 Not Found" message.Rate Limiter limits concurrent constant requests to the HTTP calls in the application.Redirects all requests to the specified URL / location.Writes request headers and response headers + response body into the log.Compresses body of REST responses.Adds static HTTP-headers to the response message.Adds a header "X-Response-Time" to the response, containing the time taken in MILLISECONDS to process the request.Middleware that will timeout requests if the response has not been written after the specified time.Service to serve files from within a given root directory.URL-based content cache.This middleware adds "X-XSRF-TOKEN" header to responses.