IHttpResponse reference
This article provides reference material about IHttpResponse interface.
Represents the HTTP response.

Properties
Body
The HTTP body stream.
ContentLength
The content length.
ContentType
The content type.
StatusCode
The status code.
Headers
The HTTP headers.
The following response headers can be set:
WWW-Authenticate- Indicates what authentication schemes can be used to access the resource and any additional data that each particular scheme needs.Content-Disposition- Specifies how the content should be handled by the client.Last-Modified- Contains the date and time at which the resource was last modified.Cache-Control- Defines caching directives for the response, such as cacheability, expiration, and revalidation rules.
Methods
DisableClientCache
Disables client cache for the current request.
Redirect
Redirects to the specified location.
WriteAsJsonAsync
Writes the specified value as JSON to the response body.
WriteAsync
Writes the given text to the response body using the given encoding.