Intercept a io.reactivex.netty.protocol.http.client.HttpClientRequest and modify it if necessary prior to execution
Type | Name and description |
---|---|
java.util.Observable<io.reactivex.netty.protocol.http.client.HttpClientResponse> |
intercept(java.util.Observable<io.reactivex.netty.protocol.http.client.HttpClientResponse> request, InterceptorContext context) The intercept method can modify the executing request. |
The intercept method can modify the executing request. Many methods on the io.reactivex.netty.protocol.http.client.HttpClientRequest class return mutated copies so the mutated request should be returned and the return type of this method.
request
- The requestcontext
- The interceptor context