ResponseHeaders Class

Definition

Strongly typed HTTP response headers.

public ref class ResponseHeaders
public class ResponseHeaders
type ResponseHeaders = class
Public Class ResponseHeaders
Inheritance
ResponseHeaders

Constructors

ResponseHeaders(IHeaderDictionary)

Initializes a new instance of ResponseHeaders.

Properties

CacheControl

Gets or sets the Cache-Control header for an HTTP response.

ContentDisposition

Gets or sets the Content-Disposition header for an HTTP response.

ContentLength

Gets or sets the Content-Length header for an HTTP response.

ContentRange

Gets or sets the Content-Range header for an HTTP response.

ContentType

Gets or sets the Content-Type header for an HTTP response.

Date

Gets or sets the Date header for an HTTP response.

ETag

Gets or sets the ETag header for an HTTP response.

Expires

Gets or sets the Expires header for an HTTP response.

Headers

Gets the backing response header dictionary.

LastModified

Gets or sets the Last-Modified header for an HTTP response.

Location

Gets or sets the Location header for an HTTP response.

SetCookie

Gets or sets the Set-Cookie header for an HTTP response.

Methods

Append(String, Object)

Appends the header name and value.

AppendList<T>(String, IList<T>)

Appends the header name and it's values.

Get<T>(String)

Gets the value of header with name.

GetList<T>(String)

Gets the values of header with name.

Set(String, Object)

Sets the header value.

SetList<T>(String, IList<T>)

Sets the specified header and it's values.

Applies to