@ConfigurationProperties(value="spring.cloud.gateway.filter.remove-hop-by-hop") public class RemoveHopByHopHeadersFilter extends Object implements HttpHeadersFilter, org.springframework.core.Ordered
HttpHeadersFilter.Type| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
HEADERS_REMOVED_ON_REQUEST
Headers to remove as the result of applying the filter.
|
| Constructor and Description |
|---|
RemoveHopByHopHeadersFilter() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.HttpHeaders |
filter(org.springframework.http.HttpHeaders input,
org.springframework.web.server.ServerWebExchange exchange)
Filters a set of Http Headers.
|
Set<String> |
getHeaders() |
int |
getOrder() |
void |
setHeaders(Set<String> headers) |
void |
setOrder(int order) |
boolean |
supports(HttpHeadersFilter.Type type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilter, filterRequestpublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
public org.springframework.http.HttpHeaders filter(org.springframework.http.HttpHeaders input,
org.springframework.web.server.ServerWebExchange exchange)
HttpHeadersFilterfilter in interface HttpHeadersFilterinput - Http Headersexchange - a ServerWebExchange that should be filteredpublic boolean supports(HttpHeadersFilter.Type type)
supports in interface HttpHeadersFilterCopyright © 2022 Pivotal Software, Inc.. All rights reserved.