AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
AwsHttpClient is a wrapper around HttpClient class of the System.Net.Http library. The wrapper has been added so as to remove System.Net.Http dependencies from the Services and migrate it to a Core level dependecy only. This avoids version clashes when a service and the Core depends on different versions of the System.Net.Http library. This is a Service level utility method
Namespace: Amazon.Util
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z
public class AWSHttpClient IDisposable
The AWSHttpClient type exposes the following members
Name | Description | |
---|---|---|
![]() |
AWSHttpClient() |
AWSHttpClient wrapper that is wrapped around HttpClient default wrapper. |
Name | Type | Description | |
---|---|---|---|
![]() |
BaseAddress | System.Uri |
AWSHttpClient BaseAddress property that is wrapper for HttpClient BaseAddress property. |
![]() |
MaxResponseContentBufferSize | System.Int64 |
AWSHttpClient MaxResponseContentBufferSize property that is wrapper for HttpClient MaxResponseContentBufferSize property. |
![]() |
Timeout | System.TimeSpan |
AWSHttpClient Timeout property that is wrapper for HttpClient Timeout property. |
Name | Description | |
---|---|---|
![]() |
Dispose() |
Wrapper for HttpClient Dispose. |
![]() |
GetResponseHeadersAsync(string, string) |
Wrapper for HttpClient's HttpRequestMessage and SendAsync methods. |
![]() |
GetStreamAsync(string) |
AWSHttpClient GetStreamAsync that accepts the requester's URI and make a HttpClient.GetStreamAsync call. |
![]() ![]() |
IsHttpInnerException(Exception) |
Method that checks if the passed exception is of type HttpRequestException |
![]() |
PutRequestUriAsync(string, AWSStreamContent, IDictionary<String, String>) |
Wrapper method that accepts a request uri, stream content and headers and makes a sendAsync call. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer