Table of Contents

Class HttpHeaderCollection

Namespace
Sisk.Core.Entity
Assembly
Sisk.Core.dll

Represents an collection of HTTP headers with their name and values.

public sealed class HttpHeaderCollection : IDictionary<string, string?>, ICollection<KeyValuePair<string, string?>>, IEnumerable<KeyValuePair<string, string?>>, IEnumerable
Inheritance
HttpHeaderCollection
Implements
Inherited Members

Constructors

HttpHeaderCollection()

Create an new instance of the HttpHeaderCollection class.

HttpHeaderCollection(NameValueCollection)

Creates an new instance of the HttpHeaderCollection with the specified headers.

Properties

Accept

Gets or sets the value of the HTTP Accept header.

AcceptCharset

Gets or sets the value of the HTTP Accept-Charset header.

AcceptEncoding

Gets or sets the value of the HTTP Accept-Encoding header.

AcceptLanguage

Gets or sets the value of the HTTP Accept-Language header.

AcceptPatch

Gets or sets the value of the HTTP Accept-Patch header.

AcceptRanges

Gets or sets the value of the HTTP Accept-Ranges header.

AccessControlAllowCredentials

Gets or sets the value of the HTTP Access-Control-Allow-Credentials header.

AccessControlAllowHeaders

Gets or sets the value of the HTTP Access-Control-Allow-Headers header.

AccessControlAllowMethods

Gets or sets the value of the HTTP Access-Control-Allow-Methods header.

AccessControlAllowOrigin

Gets or sets the value of the HTTP Access-Control-Allow-Origin header.

AccessControlExposeHeaders

Gets or sets the value of the HTTP Access-Control-Expose-Headers header.

AccessControlMaxAge

Gets or sets the value of the HTTP Access-Control-Max-Age header.

Age

Gets or sets the value of the HTTP Age header.

Allow

Gets or sets the value of the HTTP Allow header.

AltSvc

Gets or sets the value of the HTTP Alt-Svc header.

Authorization

Gets or sets the value of the HTTP Authorization header.

CacheControl

Gets or sets the value of the HTTP Cache-Control header.

ContentDisposition

Gets or sets the value of the HTTP Content-Disposition header.

ContentEncoding

Gets or sets the value of the HTTP Content-Encoding header.

ContentLanguage

Gets or sets the value of the HTTP Content-Language header.

ContentRange

Gets or sets the value of the HTTP Content-Range header.

ContentType

Gets or sets the value of the HTTP Content-Type header.

Cookie

Gets or sets the value of the HTTP Cookie header.

Count
Expect

Gets or sets the value of the HTTP Expect header.

Expires

Gets or sets the value of the HTTP Expires header.

Host

Gets or sets the value of the HTTP Host header.

IfMatch

Gets or sets the value of the HTTP If-Match header.

IfModifiedSince

Gets or sets the value of the HTTP If-Modified-Since header.

IfNoneMatch

Gets or sets the value of the HTTP If-None-Match header.

IfRange

Gets or sets the value of the HTTP If-Range header.

IfUnmodifiedSince

Gets or sets the value of the HTTP If-Unmodified-Since header.

IsReadOnly
this[string]
Keys
MaxForwards

Gets or sets the value of the HTTP Max-Forwards header.

Origin

Gets or sets the value of the HTTP Origin header.

Pragma

Gets or sets the value of the HTTP Pragma header.

ProxyAuthorization

Gets or sets the value of the HTTP Proxy-Authorization header.

Range

Gets or sets the value of the HTTP Range header.

Referer

Gets or sets the value of the HTTP Referer header.

RetryAfter

Gets or sets the value of the HTTP Retry-After header.

SetCookie

Gets or sets the value of the HTTP Set-Cookie header.

TE

Gets or sets the value of the HTTP TE header.

Trailer

Gets or sets the value of the HTTP Trailer header.

UserAgent

Gets or sets the value of the HTTP User-Agent header.

Values
Vary

Gets or sets the value of the HTTP Vary header.

Via

Gets or sets the value of the HTTP Via header.

WWWAuthenticate

Gets or sets the value of the HTTP WWW-Authenticate header.

XForwardedFor

Gets or sets the value of the HTTP X-Forwarded-For header.

XForwardedHost

Gets or sets the value of the HTTP X-Forwarded-Host header.

Methods

Add(KeyValuePair<string, string?>)
Add(string, string?)
Clear()
Contains(KeyValuePair<string, string?>)
ContainsKey(string)
CopyTo(KeyValuePair<string, string?>[], int)

This method is not implemented and should not be used.

GetEnumerator()
GetValue(string)

Gets the first headers value associated with the specified header name, or nothing it if no value is associated with the specified header.

GetValues(string)

Gets all headers values associated with the specified header name.

Remove(KeyValuePair<string, string?>)
Remove(string)
Set(string, string?)

Sets the specified header to the specified value.

ToString()
TryGetValue(string, out string?)