Declaration
public HttpResponseContent(
HttpStatusCode status,
HttpResponseHeaders headers,
Func<Stream> contentStreamDelegate = null
)Summary
Encapsulates an HTTP response, to be sent by
HttpServer to the HTTP client that sent the original
request. A request handler must return an HttpResponse object to the
HttpServer when handling a request.
Parameters
| HttpStatusCode | status |
The HTTP status code to return. |
| HttpResponseHeaders | headers |
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. |