public interface HttpClient
HttpRequest
and return a HttpResponse
. There are some
requirements for its implementation.
HttpRequest
is
converted from an AmazonWebServiceRequest
with signature information.
If modified, the request is likely to be rejected by AWS service.BrowserCompatHostnameVerifier
so that a wildcard (such as
"*.amazonaws.com") matches all subdomains, including "a.b.amazonaws.com".
This is needed for S3 virtual hosting. See Virtual Hosting of Buckets for more details.Modifier and Type | Method and Description |
---|---|
HttpResponse |
execute(HttpRequest request)
Executes a
HttpRequest and returns a HttpResponse . |
void |
shutdown()
Forcefully shutdown this HTTP client and release all underlying
resources.
|
HttpResponse execute(HttpRequest request) throws IOException
HttpRequest
and returns a HttpResponse
.request
- a HTTP requestIOException
- in case of a connection problemvoid shutdown()
Copyright © 2018. All rights reserved.