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
 
The interface for an HTTP request that is agnostic of the underlying HTTP API.

Inheritance Hierarchy

Amazon.Runtime.IHttpRequest<>

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

Syntax

C#
public interface IHttpRequest<>
         IDisposable

The IHttpRequest<> type exposes the following members

Properties

NameTypeDescription
Public Property Method System.String The HTTP method or verb.
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 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(TRequestContent, Stream, IDictionary<String, String>, IRequestContext)
Public Method WriteToRequestBody(TRequestContent, Byte[], IDictionary<String, String>)

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.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