Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: HttpResponseContent(HttpStatusCode, HttpResponseHeaders, Func<Stream>)

Declaration

public HttpResponseContent(
    HttpStatusCode status,
    HttpResponseHeaders headers,
    Func<Stream> contentStreamDelegate = null
)

Summary

Initializes an HTTP response.

Parameters

HttpStatusCodestatus The HTTP status code to return.
HttpResponseHeadersheaders HTTP response headers to include in the response.
Func<Stream>contentStreamDelegate A delegate that generates or returns a Stream, which in turn provides the content to return as part of this response. Can be null for empty responses.