Package io.vertx.httpproxy.interceptors
Interface QueryInterceptor
-
@Unstable public interface QueryInterceptor
The general interceptor for query parameters.
-
-
Method Summary
Static Methods Modifier and Type Method Description static ProxyInterceptor
changeQueryParams(Handler<MultiMap> changeQueries)
Apply callbacks to modify the query parameters.static ProxyInterceptor
removeQueryParam(String name)
Remove a query parameter to the request.static ProxyInterceptor
setQueryParam(String name, String value)
Add a query parameter to the request.
-
-
-
Method Detail
-
changeQueryParams
static ProxyInterceptor changeQueryParams(Handler<MultiMap> changeQueries)
Apply callbacks to modify the query parameters.- Parameters:
changeQueries
- the operation to apply to the request query parameters- Returns:
- the created interceptor
-
setQueryParam
static ProxyInterceptor setQueryParam(String name, String value)
Add a query parameter to the request.- Parameters:
name
- the parameter namevalue
- the parameter value- Returns:
- the created interceptor
-
removeQueryParam
static ProxyInterceptor removeQueryParam(String name)
Remove a query parameter to the request.- Parameters:
name
- the parameter name- Returns:
- the created interceptor
-
-