You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Unify body and head interceptor in a single builder
- Add max buffered size during body interception
- Handle body and head interception failures
Motivation:
The body and head interception API can be unified further more by providing a single interceptor instead of two interceptors.
The current body transformation API assumes buffering and therefore uses buffer cumulation, therefore it should have an upper bound regarding this cumulation.
The interceptor implementation does not handle failures such as a transformation failure or a buffer overflow.
You can use the {@link io.vertx.httpproxy.interceptors.HeadInterceptor} to change HTTP request/response heads:
146
+
You can use {@link io.vertx.httpproxy.ProxyInterceptor#builder()} that facilitates the implementation of an interceptor
147
+
that modifies the request/response heads and bodies:
147
148
148
149
- request path
149
150
- query params
150
151
- request and response headers
152
+
- body transformation
151
153
152
-
A {@link io.vertx.httpproxy.interceptors.HeadInterceptor} is created and configured with a {@link io.vertx.httpproxy.interceptors.HeadInterceptorBuilder}.
153
-
154
-
The builder methods can be invoked several times.
155
-
Operations on the path will be invoked in the order of configuration.
156
-
That goes for operations on query parameters, request headers and response headers.
154
+
Such interceptor is created and configured with a {@link io.vertx.httpproxy.ProxyInterceptorBuilder}.
157
155
158
156
===== Headers interception
159
157
@@ -164,7 +162,9 @@ You can apply the interceptor to change headers from the request and response wi
0 commit comments