Table of Contents

Class HttpRequestEvidence

Namespace
Cuemon.AspNetCore.Diagnostics
Assembly
Cuemon.AspNetCore.dll

Provides detailed information about a given HttpRequest.

public class HttpRequestEvidence
Inheritance
HttpRequestEvidence

Constructors

HttpRequestEvidence(HttpRequest, Func<Stream, string>)

Initializes a new instance of the HttpRequestEvidence class.

public HttpRequestEvidence(HttpRequest request, Func<Stream, string> bodyConverter = null)

Parameters

request HttpRequest

The HttpRequest to provide evidence for.

bodyConverter Func<Stream, string>

The function delegate that determines the string result of a HTTP request body.

Fields

HttpContextItemsKeyForCapturedRequestBody

The key to set or get a copy of a captured request body.

public const string HttpContextItemsKeyForCapturedRequestBody = "CuemonAspNetCoreDiagnostics_HttpContextItemsKeyForCapturedRequestBody"

Field Value

string

Properties

Body

Gets the body of the request.

public string Body { get; }

Property Value

string

The body of the request.

Cookies

Gets the collection of cookies for the request.

public IRequestCookieCollection Cookies { get; }

Property Value

IRequestCookieCollection

The collection of cookies for the request.

Form

Gets the associated keys and values collection from the Form.

public IFormCollection Form { get; }

Property Value

IFormCollection

The associated keys and values collection parsed from the Form.

Headers

Gets the request headers.

public IHeaderDictionary Headers { get; }

Property Value

IHeaderDictionary

The headers of the request.

Location

Gets the request URL in a fully un-escaped form (except for the QueryString).

public string Location { get; }

Property Value

string

The request URL in a fully un-escaped form (except for the QueryString).

Method

Gets the request HTTP method.

public string Method { get; }

Property Value

string

The HTTP method.

Query

Gets the associated keys and values collection parsed from the QueryString.

public IQueryCollection Query { get; }

Property Value

IQueryCollection

The associated keys and values collection parsed from the QueryString.