Class
AspNetResponse

Asp.Net Response object.

Definition

Namespace:ArtOfTest.WebAii.WebServers.AspNetHost

Assembly:ArtOfTest.WebAii.dll

Syntax:

cs-api-definition
public class AspNetResponse

Inheritance: objectAspNetResponse

Properties

Body

Gets the response body as a byte array.

Declaration

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

Property Value

byte[]

BodyAsString

Gets the response body as a string.

Declaration

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

Property Value

string

Headers

Gets the response headers.

Declaration

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

Property Value

List<KeyValuePair<string, string>>

Status

Gets the response status.

Declaration

cs-api-definition
public int Status { get; }

Property Value

int

Methods

ToEntireResponseString()

Returns the entire response as a string including headers, status and body.

Declaration

cs-api-definition
public string ToEntireResponseString()

Returns

string

The entire response string.