public class OkHttpHttpVerifier extends Object implements HttpVerifier
HttpVerifier implementation that uses OkHttpClient. Has an inbuilt
support for GRPC.
Warning! This API is experimental and can change in time.| Constructor and Description |
|---|
OkHttpHttpVerifier(String hostAndPort) |
| Modifier and Type | Method and Description |
|---|---|
Response |
exchange(Request request)
Sends a request and blocks for the response.
|
public OkHttpHttpVerifier(String hostAndPort)
hostAndPort - - don't pass the scheme, it will be resolved from
Request.scheme(). E.g. pass localhost:1234.public Response exchange(Request request)
HttpVerifierexchange in interface HttpVerifierrequest - - HTTP requestCopyright © 2016–2020 Spring. All rights reserved.