ResponseExtensions Class

Definition

Defines extension methods for the HttpResponseBase base class.

public static class ResponseExtensions
type ResponseExtensions = class
Public Module ResponseExtensions
Inheritance
ResponseExtensions

Methods

OutputCache(HttpResponseBase, Int32, Boolean, IEnumerable<String>, IEnumerable<String>, IEnumerable<String>, HttpCacheability)

Configures the cache policy of an HTTP response instance.

SetStatus(HttpResponseBase, HttpStatusCode)

Sets the HTTP status code of an HTTP response using the specified HTTP status code enumeration value.

SetStatus(HttpResponseBase, Int32)

Sets the HTTP status code of an HTTP response using the specified integer value.

WriteBinary(HttpResponseBase, Byte[])

Writes a sequence of bytes that represent binary content of an unspecified type to the output stream of an HTTP response.

WriteBinary(HttpResponseBase, Byte[], String)

Writes a sequence of bytes that represent binary content of the specified MIME type to the output stream of an HTTP response.

Applies to