Class
AspNetRequest

Represents an Asp.Net Request

Definition

Namespace:ArtOfTest.WebAii.WebServers.AspNetHost

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class AspNetRequest

Inheritance: objectAspNetRequest

Constructors

AspNetRequest(string)

Create a new request

Declaration

cs-api-definition
public AspNetRequest(string requestPath)

Parameters

requestPath

string

The request path.

AspNetRequest(string, string, string, string, List<KeyValuePair<string, string>>, byte[])

Create a new request

Declaration

cs-api-definition
public AspNetRequest(string requestFilePath, string requestPathInfo, string requestQueryString, string requestMethod, List<KeyValuePair<string, string>> requestHeaders, byte[] requestBody)

Parameters

requestFilePath

string

Full request url.

requestPathInfo

string

requestQueryString

string

requestMethod

string

requestHeaders

List<KeyValuePair<string, string>>

requestBody

byte[]

Properties

Body

Gets the body.

Declaration

cs-api-definition
public byte[] Body { get; set; }

Property Value

byte[]

FilePath

Gets the file path portion only of the request without any query strings.

Declaration

cs-api-definition
public string FilePath { get; set; }

Property Value

string

FullRequestUrl

Gets the full request url as passed in to this request object.

Declaration

cs-api-definition
public string FullRequestUrl { get; }

Property Value

string

Headers

Gets the headers.

Declaration

cs-api-definition
public List<KeyValuePair<string, string>> Headers { get; }

Property Value

List<KeyValuePair<string, string>>

Method

Gets the request method

Declaration

cs-api-definition
public string Method { get; set; }

Property Value

string

PathInfo

Gets the Path info.

Declaration

cs-api-definition
public string PathInfo { get; set; }

Property Value

string

QueryString

Gets the query string.

Declaration

cs-api-definition
public string QueryString { get; set; }

Property Value

string