Sana Assistant (online)
Table of Contents

IHttpResponse reference

This article provides reference material about IHttpResponse interface.

Represents the HTTP response.

IHttpResponse interface

Properties

Body

The HTTP body stream.

ContentLength

The content length.

ContentType

The content type.

StatusCode

The status code.

Headers

The HTTP headers. Currently, the only HTTP header that can be set is WWW-Authenticate. This header is used in response to indicate what authentication schemes can be used to access the resource and any additional data that each particular scheme needs.

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.

See also