Package org.restheart.handlers.injectors


package org.restheart.handlers.injectors
Handlers in charge of injecting data in the request context.
Author:
Andrea Di Cesare <andrea@softinstigate.com>
  • Class
    Description
    injects the context authenticatedAccount
    Executes the interceptors for proxied requests taking care of buffering the response from the backend to make it accessible to them whose requiresResponseContent() returns true Note that getting the content has significant performance overhead for proxied resources.
    Sets the Date response header According to the HTTP specification, the `Date` header should be included in all responses, except when the server lacks an accurate clock.
     
    injects in the exchange the request content if the request involves a Service or a Request Interceptor whose requiresContent() returns true Note that getting the content has significant performance overhead for proxied resources.
     
     
    Adds the following X-Forwarded custom headers to the proxied request: 'X-Forwarded-Account-Id', 'X-Forwarded-Account-Roles' and other headers set with Response.addXForwardedHeader()
    Sets the X-Powered-By: restheart.org response header