Table of Contents

Class HttpRequestEvidence

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

Provides detailed information about a given Microsoft.AspNetCore.Http.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 Microsoft.AspNetCore.Http.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 Microsoft.AspNetCore.Http.HttpRequest.Form.

public IFormCollection Form { get; }

Property Value

IFormCollection

The associated keys and values collection parsed from the Microsoft.AspNetCore.Http.HttpRequest.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 Microsoft.AspNetCore.Http.HttpRequest.QueryString.

public IQueryCollection Query { get; }

Property Value

IQueryCollection

The associated keys and values collection parsed from the Microsoft.AspNetCore.Http.HttpRequest.QueryString.