Interface HeadersInterceptor


  • @Unstable
    public interface HeadersInterceptor
    Used to create interceptors to modify request and response headers.
    • Method Detail

      • changeHeaders

        static ProxyInterceptor changeHeaders​(Handler<MultiMap> changeRequestHeaders,
                                              Handler<MultiMap> changeResponseHeaders)
        Apply callbacks to change the request and response headers when the proxy receives them.
        Parameters:
        changeRequestHeaders - the operation to apply to the request headers
        changeResponseHeaders - the operation to apply to the response headers
        Returns:
        the created interceptor
      • filterRequestHeaders

        static ProxyInterceptor filterRequestHeaders​(Set<CharSequence> requestHeaders)
        Filter the request headers in the given set.
        Parameters:
        requestHeaders - a set of the headers that need to be filtered
        Returns:
        the created interceptor
      • filterResponseHeaders

        static ProxyInterceptor filterResponseHeaders​(Set<CharSequence> responseHeaders)
        Filter the response headers in the given set.
        Parameters:
        responseHeaders - a set of the headers that need to be filtered
        Returns:
        the created interceptor
      • filterHeaders

        static ProxyInterceptor filterHeaders​(Set<CharSequence> requestHeaders,
                                              Set<CharSequence> responseHeaders)
        Filter the request and response headers in the given sets.
        Parameters:
        requestHeaders - a set of the request headers that need to be filtered
        responseHeaders - a set of the response headers that need to be filtered
        Returns:
        the created interceptor