Http |
public class HttpHeaders : IEnumerable
The HttpHeaders type exposes the following members.
| Name | Description | |
|---|---|---|
| HttpHeaders | Creates an instance of the HTTPHeaders class. |
| Name | Description | |
|---|---|---|
| ContentType | 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. | |
| Count | Returns the number of elements contained in the array. | |
| FirstHeader | 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. | |
| Item | Returns the HTTP Header for the index provided. | |
| MaxHeaderLines | Determines the maximum HTTP header count allowed. | |
| MaxHeaderLinesEnabled | Determines whether the MaxHeaderLines is enabled. | |
| RequestPath | Gets or sets the Request URL, not including the server URL. | |
| RequestType | Gets or sets the method of the HTTP request, usually "GET" or "POST". | |
| RequestVersion | Gets or sets the protocol version of the HTTP. | |
| ResponseCode | Returns the Status-Code of the Response message. |
| Name | Description | |
|---|---|---|
| AddHeader | Adds the HTTPHeader object to the array of HTTPHeaders. | |
| ContainsHeaderValue | Determines whether the HttpHeaders object contains a specified value. | |
| Create | Creates an HTTP Header from the Connection. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetEnumerator | Returns the Enumerator for the HTTP Header Enumerator. | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetHeaderValue | Gets the value associated with the specified name. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Initialize | Initializes the HTTP Header to a default of 100 HeaderLines. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ParseFirstLine | Parse the first line of the HTTP header. | |
| ReadHeader | Reads the HTTP Header for the incoming HTTP request connection. | |
| SetHeaderValue | Adds the specified name and value to the array. | |
| SetRequestHeader | Sets the specified RequestVersion, RequestType, RequestPath. | |
| SetResponseHeader | Sets the HTTP Response Header with the specified parameter values. | |
| ToString |
ToString method for the HTTP Header
(Overrides ObjectToString) | |
| WriteHeader | Write the HTTP Header Content out from the Connection. |