AWS SDK Version 3 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.

The response from a GetSampledRequests request includes an HTTPRequest complex type that appears as Request in the response syntax. HTTPRequest contains information about one of the web requests that were returned by GetSampledRequests.

Inheritance Hierarchy

System.Object
  Amazon.WAF.Model.HTTPRequest

Namespace: Amazon.WAF.Model
Assembly: AWSSDK.WAF.dll
Version: 3.x.y.z

Syntax

C#
public class HTTPRequest

The HTTPRequest type exposes the following members

Constructors

NameDescription
Public Method HTTPRequest()

Properties

NameTypeDescription
Public Property ClientIP System.String

Gets and sets the property ClientIP.

The IP address that the request originated from. If the WebACL is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:

  • c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the request

  • x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request

Public Property Country System.String

Gets and sets the property Country.

The two-letter country code for the country that the request originated from. For a current list of country codes, see the Wikipedia entry ISO 3166-1 alpha-2.

Public Property Headers System.Collections.Generic.List<Amazon.WAF.Model.HTTPHeader>

Gets and sets the property Headers.

A complex type that contains two values for each header in the sampled web request: the name of the header and the value of the header.

Public Property HTTPVersion System.String

Gets and sets the property HTTPVersion.

The HTTP version specified in the sampled web request, for example, HTTP/1.1.

Public Property Method System.String

Gets and sets the property Method.

The HTTP method specified in the sampled web request. CloudFront supports the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT.

Public Property URI System.String

Gets and sets the property URI.

The part of a web request that identifies the resource, for example, /images/daily-ad.jpg.

Version Information

.NET Standard:
Supported in: 1.3

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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms