AWS SDK Version 2 for .NET
API Reference

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.

.NET Framework 4.5
 
HTTP request wrapper for System.Net.Http.HttpRequestMessage.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.HttpWebRequestMessage

Namespace: Amazon.Runtime
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class HttpWebRequestMessage : Object
         IDisposable, IHttpRequest<HttpContent>

The HttpWebRequestMessage type exposes the following members

Constructors

NameDescription
Public Method HttpWebRequestMessage(Uri, ClientConfig) The constructor for HttpWebRequestMessage.

Properties

NameTypeDescription
Public Property HttpClient System.Net.Http.HttpClient
Public Property Method System.String The HTTP method or verb.
Public Property Request System.Net.Http.HttpRequestMessage The underlying HTTP web request.
Public Property RequestUri System.Uri The request URI.

Methods

NameDescription
Public Method Abort() Aborts the HTTP request.
Public Method ConfigureRequest(IRequestContext) Configures a request as per the request context.
Public Method Dispose() Disposes the HttpWebRequestMessage.
Public Method GetRequestContent() Gets a handle to the request content.
Public Method GetRequestContentAsync() Gets a handle to the request content.
Public Method GetResponse() Returns the HTTP response.
Public Method GetResponseAsync(CancellationToken) Returns the HTTP response.
Public Method SetRequestHeaders(IDictionary<String, String>) Sets the headers on the request.
Public Method WriteToRequestBody(HttpContent, Stream, IDictionary<String, String>, IRequestContext) Writes a stream to the request body.
Public Method WriteToRequestBody(HttpContent, Byte[], IDictionary<String, String>) Writes a byte array to the request body.

Version Information

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8