Package io.vertx.httpproxy.interceptors
Interface HeadersInterceptor
-
@Unstable public interface HeadersInterceptor
Used to create interceptors to modify request and response headers.
-
-
Method Summary
Static Methods Modifier and Type Method Description static ProxyInterceptor
changeHeaders(Handler<MultiMap> changeRequestHeaders, Handler<MultiMap> changeResponseHeaders)
Apply callbacks to change the request and response headers when the proxy receives them.static ProxyInterceptor
filterHeaders(Set<CharSequence> requestHeaders, Set<CharSequence> responseHeaders)
Filter the request and response headers in the given sets.static ProxyInterceptor
filterRequestHeaders(Set<CharSequence> requestHeaders)
Filter the request headers in the given set.static ProxyInterceptor
filterResponseHeaders(Set<CharSequence> responseHeaders)
Filter the response headers in the given set.
-
-
-
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 headerschangeResponseHeaders
- 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 filteredresponseHeaders
- a set of the response headers that need to be filtered- Returns:
- the created interceptor
-
-