public abstract class InterceptingHttpClient<I,O> extends java.lang.Object implements io.reactivex.netty.events.EventSource<HttpClientEventsListener>
| Constructor and Description |
|---|
InterceptingHttpClient() |
| Modifier and Type | Method and Description |
|---|---|
abstract HttpClientRequest<I,O> |
createConnect(java.lang.String uri)
Creates a CONNECT request for the passed URI.
|
abstract HttpClientRequest<I,O> |
createDelete(java.lang.String uri)
Creates a DELETE request for the passed URI.
|
abstract HttpClientRequest<I,O> |
createGet(java.lang.String uri)
Creates a GET request for the passed URI.
|
abstract HttpClientRequest<I,O> |
createHead(java.lang.String uri)
Creates a HEAD request for the passed URI.
|
abstract HttpClientRequest<I,O> |
createOptions(java.lang.String uri)
Creates an OPTIONS request for the passed URI.
|
abstract HttpClientRequest<I,O> |
createPatch(java.lang.String uri)
Creates a PATCH request for the passed URI.
|
abstract HttpClientRequest<I,O> |
createPost(java.lang.String uri)
Creates a POST request for the passed URI.
|
abstract HttpClientRequest<I,O> |
createPut(java.lang.String uri)
Creates a PUT request for the passed URI.
|
abstract HttpClientRequest<I,O> |
createRequest(io.netty.handler.codec.http.HttpMethod method,
java.lang.String uri)
Creates a request for the passed HTTP method and URI.
|
abstract HttpClientRequest<I,O> |
createRequest(io.netty.handler.codec.http.HttpVersion version,
io.netty.handler.codec.http.HttpMethod method,
java.lang.String uri)
Creates a request for the passed HTTP version, method and URI.
|
abstract HttpClientRequest<I,O> |
createTrace(java.lang.String uri)
Creates a TRACE request for the passed URI.
|
abstract HttpClientInterceptorChain<I,O> |
intercept()
Starts the process of adding interceptors to this client.
|
public abstract HttpClientRequest<I,O> createGet(java.lang.String uri)
uri - The URI for the request. The URI should be absolute and should not contain the scheme, host and port.HttpClientRequest.public abstract HttpClientRequest<I,O> createPost(java.lang.String uri)
uri - The URI for the request. The URI should be absolute and should not contain the scheme, host and port.HttpClientRequest.public abstract HttpClientRequest<I,O> createPut(java.lang.String uri)
uri - The URI for the request. The URI should be absolute and should not contain the scheme, host and port.HttpClientRequest.public abstract HttpClientRequest<I,O> createDelete(java.lang.String uri)
uri - The URI for the request. The URI should be absolute and should not contain the scheme, host and port.HttpClientRequest.public abstract HttpClientRequest<I,O> createHead(java.lang.String uri)
uri - The URI for the request. The URI should be absolute and should not contain the scheme, host and port.HttpClientRequest.public abstract HttpClientRequest<I,O> createOptions(java.lang.String uri)
uri - The URI for the request. The URI should be absolute and should not contain the scheme, host and port.HttpClientRequest.public abstract HttpClientRequest<I,O> createPatch(java.lang.String uri)
uri - The URI for the request. The URI should be absolute and should not contain the scheme, host and port.HttpClientRequest.public abstract HttpClientRequest<I,O> createTrace(java.lang.String uri)
uri - The URI for the request. The URI should be absolute and should not contain the scheme, host and port.HttpClientRequest.public abstract HttpClientRequest<I,O> createConnect(java.lang.String uri)
uri - The URI for the request. The URI should be absolute and should not contain the scheme, host and port.HttpClientRequest.public abstract HttpClientRequest<I,O> createRequest(io.netty.handler.codec.http.HttpMethod method, java.lang.String uri)
method - Http Method.uri - The URI for the request. The URI should be absolute and should not contain the scheme, host and port.HttpClientRequest.public abstract HttpClientRequest<I,O> createRequest(io.netty.handler.codec.http.HttpVersion version, io.netty.handler.codec.http.HttpMethod method, java.lang.String uri)
version - HTTP versionmethod - Http Method.uri - The URI for the request. The URI should be absolute and should not contain the scheme, host and port.HttpClientRequest.public abstract HttpClientInterceptorChain<I,O> intercept()