| Package | Description |
|---|---|
| com.google.api.client.http |
Subset of HTTP 1.1 needed from the specification in
RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1.
|
| com.google.api.client.testing.http |
Beta
Testing utilities used for writing tests based on this library. |
| Modifier and Type | Method and Description |
|---|---|
HttpResponse |
HttpRequest.execute()
Execute the HTTP request and returns the HTTP response.
|
HttpResponse |
HttpResponse.setContentLoggingLimit(int contentLoggingLimit)
Set the limit to the content size that will be logged during
getContent().
|
HttpResponse |
HttpResponse.setLoggingEnabled(boolean loggingEnabled)
Sets whether logging should be enabled on this response.
|
| Modifier and Type | Method and Description |
|---|---|
Future |
HttpRequest.executeAsync()
Beta
Executes this request asynchronously using HttpRequest in a single separate thread using
Executors.
|
Future |
HttpRequest.executeAsync(Executor
Beta
Executes this request asynchronously in a single separate thread using the supplied executor. |
| Modifier and Type | Method and Description |
|---|---|
static StringBuilder |
HttpResponseException.computeMessageBuffer(HttpResponse
Returns an exception message string builder to use for the given HTTP response.
|
boolean |
HttpBackOffUnsuccessfulResponseHandler.handleResponse(HttpRequest
Handler that will be invoked when an abnormal response is received.
|
boolean |
HttpUnsuccessfulResponseHandler.handleResponse(HttpRequest
Handler that will be invoked when an abnormal response is received.
|
void |
HttpResponseInterceptor.interceptResponse(HttpResponse
Invoked at the end of
HttpRequest before returning a successful response or throwing an exception for an unsuccessful response.
|
boolean |
HttpBackOffUnsuccessfulResponseHandler.BackOffRequired.isRequired(HttpResponse
Invoked when an abnormal response is received and determines if back-off is required.
|
| Constructor and Description | |
|---|---|
Builder(HttpResponse
|
|
HttpResponseException(HttpResponse
Constructor that constructs a detail message from the given HTTP response that includes the status code, status message and HTTP response content.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
MockHttpUnsuccessfulResponseHandler.handleResponse(HttpRequest
|