Click or drag to resize

HttpHeaders Class

HttpHeaders contains an array of HttpHeader objects.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharp.Net.HttpHttpHeaders

Namespace: Crestron.SimplSharp.Net.Http
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public class HttpHeaders : IEnumerable

The HttpHeaders type exposes the following members.

Constructors
 NameDescription
Public methodHttpHeaders Creates an instance of the HTTPHeaders class.
Top
Properties
 NameDescription
Public propertyContentType The mime type of this content. Used for Response headers. It is composed of at least two parts: a type, a subtype and one or more optional parameters. For example: text/html; charset=utf-8.
Public propertyCount Returns the number of elements contained in the array.
Public propertyFirstHeader Gets or sets the Status-Line of the Response message. It consists of the protocol version followed by a numeric status code and its associated textual phrase.
Public propertyItem Returns the HTTP Header for the index provided.
Public propertyMaxHeaderLines Determines the maximum HTTP header count allowed.
Public propertyMaxHeaderLinesEnabled Determines whether the MaxHeaderLines is enabled.
Public propertyRequestPath Gets or sets the Request URL, not including the server URL.
Public propertyRequestType Gets or sets the method of the HTTP request, usually "GET" or "POST".
Public propertyRequestVersion Gets or sets the protocol version of the HTTP.
Public propertyResponseCode Returns the Status-Code of the Response message.
Top
Methods
 NameDescription
Public methodAddHeader Adds the HTTPHeader object to the array of HTTPHeaders.
Public methodContainsHeaderValue Determines whether the HttpHeaders object contains a specified value.
Public methodStatic memberCreate Creates an HTTP Header from the Connection.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetEnumerator Returns the Enumerator for the HTTP Header Enumerator.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetHeaderValue Gets the value associated with the specified name.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInitialize Initializes the HTTP Header to a default of 100 HeaderLines.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodParseFirstLine Parse the first line of the HTTP header.
Public methodReadHeader Reads the HTTP Header for the incoming HTTP request connection.
Public methodSetHeaderValue Adds the specified name and value to the array.
Public methodSetRequestHeader Sets the specified RequestVersion, RequestType, RequestPath.
Public methodSetResponseHeader Sets the HTTP Response Header with the specified parameter values.
Public methodToString ToString method for the HTTP Header
(Overrides ObjectToString)
Public methodWriteHeader Write the HTTP Header Content out from the Connection.
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also