Class TestHttpRequestData

Namespace
XBullet.EasyTesting.AzureFunctions
Assembly
XBullet.EasyTesting.AzureFunctions.dll

An in-memory isolated-worker HTTP request.

public sealed class TestHttpRequestData : HttpRequestData
Inheritance
TestHttpRequestData
Inherited Members

Properties

Body

A Stream containing the HTTP body data.

public override Stream Body { get; }

Property Value

Stream

Cookies

Gets an IReadOnlyCollection<T> containing the request cookies.

public override IReadOnlyCollection<IHttpCookie> Cookies { get; }

Property Value

IReadOnlyCollection<IHttpCookie>

Headers

Gets a HttpHeadersCollection containing the request headers.

public override HttpHeadersCollection Headers { get; }

Property Value

HttpHeadersCollection

Identities

Gets an IEnumerable<T> containing the request identities.

public override IEnumerable<ClaimsIdentity> Identities { get; }

Property Value

IEnumerable<ClaimsIdentity>

Method

Gets the HTTP method for this request.

public override string Method { get; }

Property Value

string

Url

Gets the Uri for this request.

public override Uri Url { get; }

Property Value

Uri

Methods

CreateResponse()

Creates a response for this request.

public override HttpResponseData CreateResponse()

Returns

HttpResponseData

The response instance.