Interface HttpRequestInterceptor

  • All Known Implementing Classes:
    NullHttpRequestInterceptor

    public interface HttpRequestInterceptor
    An interface allowing to intercept an HTTP request, before it is sent to the backend system.

    This interceptor is only applied to HTTP requests which are sent to Dynatrace backends.

    • Method Detail

      • intercept

        void intercept​(HttpRequest httpRequest)
        Intercept the HTTP request and manipulate it.

        Currently it's only possible to set custom HTTP headers.

        Parameters:
        httpRequest - The HTTP request to Dynatrace backend.