Share via


RequestHeaders Class

Definition

Strongly typed HTTP request headers.

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

Constructors

RequestHeaders(IHeaderDictionary)

Initializes a new instance of RequestHeaders.

Properties

Accept

Gets or sets the Accept header for an HTTP request.

AcceptCharset

Gets or sets the Accept-Charset header for an HTTP request.

AcceptEncoding

Gets or sets the Accept-Encoding header for an HTTP request.

AcceptLanguage

Gets or sets the Accept-Language header for an HTTP request.

CacheControl

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

ContentDisposition

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

ContentLength

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

ContentRange

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

ContentType

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

Cookie

Gets or sets the Cookie header for an HTTP request.

Date

Gets or sets the Date header for an HTTP request.

Expires

Gets or sets the Expires header for an HTTP request.

Headers

Gets the backing request header dictionary.

Host

Gets or sets the Host header for an HTTP request.

IfMatch

Gets or sets the If-Match header for an HTTP request.

IfModifiedSince

Gets or sets the If-Modified-Since header for an HTTP request.

IfNoneMatch

Gets or sets the If-None-Match header for an HTTP request.

IfRange

Gets or sets the If-Range header for an HTTP request.

IfUnmodifiedSince

Gets or sets the If-Unmodified-Since header for an HTTP request.

LastModified

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

Range

Gets or sets the Range header for an HTTP request.

Referer

Gets or sets the Referer header for an HTTP request.

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