public interface HttpStack
Modifier and Type | Method and Description |
---|---|
HttpResponse |
performRequest(Request<?> request,
java.util.Map<java.lang.String,java.lang.String> additionalHeaders)
Performs an HTTP request with the given parameters.
|
HttpResponse performRequest(Request<?> request, java.util.Map<java.lang.String,java.lang.String> additionalHeaders) throws java.io.IOException, AuthFailureError
A GET request is sent if request.getPostBody() == null. A POST request is sent otherwise, and the Content-Type header is set to request.getPostBodyContentType().
request
- the request to performadditionalHeaders
- additional headers to be sent together with
Request.getHeaders()
java.io.IOException
AuthFailureError