Module Values.HTTPRequestSource

Part of the response from GetSampledRequests. This is a complex type that appears as Request in the response syntax. HTTPRequest contains information about one of the web requests.

Sourcetype nonrec t = {
  1. clientIP : IPString.t option;
    (*

    The IP address that the request originated from. If the web ACL 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

    *)
  2. country : Country.t option;
    (*

    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.

    *)
  3. uRI : URIString.t option;
    (*

    The URI path of the request, which identifies the resource, for example, /images/daily-ad.jpg.

    *)
  4. method_ : HTTPMethod.t option;
    (*

    The HTTP method specified in the sampled web request.

    *)
  5. hTTPVersion : HTTPVersion.t option;
    (*

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

    *)
  6. headers : HTTPHeaders.t option;
    (*

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

    *)
}
Sourceval make : ?clientIP:??? -> ?country:??? -> ?uRI:??? -> ?method_:??? -> ?hTTPVersion:??? -> ?headers:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of HeaderName.t ]) list ] list | `String of IPString.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t