public interface MockHttpConnection
Used as a shim between the server and client APIs that allow the
| Modifier and Type | Method and Description |
|---|---|
MockHttpRequest |
request(String method,
String path,
Map<String,Object> headers,
Object body)
Creates a mocked HTTP request.
|
MockHttpRequest request(String method, String path, Map<String,Object> headers, Object body) throws Exception
method - The HTTP request method.path - The HTTP request path.headers - Optional HTTP request headers.body - The HTTP request body.ExceptionCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.