Property | Type | Description | |
---|---|---|---|
Convert | string | ||
Convert | string | ||
GetObjectData | void | ||
ISerializable | void | ||
InternalRemove | void | ||
InternalSet | void | ||
InternalSet | void | ||
IsHeaderName | bool | ||
IsHeaderValue | bool | ||
IsMultiValue | bool | ||
ToStringMultiValue | string | ||
WebHeaderCollection | System | ||
WebHeaderCollection | System | ||
add | void | ||
addWithoutCheckingName | void | ||
addWithoutCheckingNameAndRestricted | void | ||
checkColonSeparated | int | ||
checkHeaderType | HttpHeaderType | ||
checkName | string | ||
checkRestricted | void | ||
checkState | void | ||
checkValue | string | ||
convert | string | ||
doWithCheckingState | void | ||
doWithCheckingState | void | ||
doWithoutCheckingName | void | ||
getHeaderInfo | WebSocketSharp.Net.HttpHeaderInfo | ||
isRestricted | bool | ||
removeWithoutCheckingName | void | ||
setWithoutCheckingName | void |
Method | Description | |
---|---|---|
Add ( HttpRequestHeader header, string value ) : void |
Adds the specified request header with the specified value to the collection.
|
|
Add ( HttpResponseHeader header, string value ) : void |
Adds the specified response header with the specified value to the collection.
|
|
Add ( string header ) : void |
Adds the specified header to the collection.
|
|
Add ( string name, string value ) : void |
Adds a header with the specified name and value to the collection.
|
|
Clear ( ) : void |
Removes all headers from the collection.
|
|
Get ( int index ) : string |
Get the value of the header at the specified index in the collection.
|
|
Get ( string name ) : string |
Get the value of the header with the specified name in the collection.
|
|
GetEnumerator ( ) : IEnumerator |
Gets the enumerator used to iterate through the collection.
|
|
GetKey ( int index ) : string |
Get the name of the header at the specified index in the collection.
|
|
GetValues ( int index ) : string[] |
Gets an array of header values stored in the specified index position of the collection.
|
|
GetValues ( string header ) : string[] |
Gets an array of header values stored in the specified header.
|
|
IsRestricted ( string headerName ) : bool |
Determines whether the specified header can be set for the request.
|
|
IsRestricted ( string headerName, bool response ) : bool |
Determines whether the specified header can be set for the request or the response.
|
|
OnDeserialization ( object sender ) : void |
Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.
|
|
Remove ( HttpRequestHeader header ) : void |
Removes the specified request header from the collection.
|
|
Remove ( HttpResponseHeader header ) : void |
Removes the specified response header from the collection.
|
|
Remove ( string name ) : void |
Removes the specified header from the collection.
|
|
Set ( HttpRequestHeader header, string value ) : void |
Sets the specified request header to the specified value.
|
|
Set ( HttpResponseHeader header, string value ) : void |
Sets the specified response header to the specified value.
|
|
Set ( string name, string value ) : void |
Sets the specified header to the specified value.
|
|
ToByteArray ( ) : byte[] |
Converts the current WebHeaderCollection to an array of byte.
|
|
ToString ( ) : string |
Returns a string that represents the current WebHeaderCollection.
|
|
this ( HttpRequestHeader header ) : string |
Gets or sets the specified request header in the collection.
|
|
this ( HttpResponseHeader header ) : string |
Gets or sets the specified response header in the collection.
|
Method | Description | |
---|---|---|
AddWithoutValidate ( string headerName, string headerValue ) : void |
Adds a header to the collection without checking if the header is on the restricted header list.
|
|
WebHeaderCollection ( |
Initializes a new instance of the WebHeaderCollection class from the specified SerializationInfo and StreamingContext.
|
Method | Description | |
---|---|---|
Convert ( HttpRequestHeader header ) : string | ||
Convert ( HttpResponseHeader header ) : string | ||
GetObjectData ( |
||
ISerializable ( |
||
InternalRemove ( string name ) : void | ||
InternalSet ( string header, bool response ) : void | ||
InternalSet ( string name, string value, bool response ) : void | ||
IsHeaderName ( string name ) : bool | ||
IsHeaderValue ( string value ) : bool | ||
IsMultiValue ( string headerName, bool response ) : bool | ||
ToStringMultiValue ( bool response ) : string | ||
WebHeaderCollection ( ) : System | ||
WebHeaderCollection ( HttpHeaderType state, bool internallyUsed ) : System | ||
add ( string name, string value, bool ignoreRestricted ) : void | ||
addWithoutCheckingName ( string name, string value ) : void | ||
addWithoutCheckingNameAndRestricted ( string name, string value ) : void | ||
checkColonSeparated ( string header ) : int | ||
checkHeaderType ( string name ) : HttpHeaderType | ||
checkName ( string name ) : string | ||
checkRestricted ( string name ) : void | ||
checkState ( bool response ) : void | ||
checkValue ( string value ) : string | ||
convert ( string key ) : string | ||
doWithCheckingState ( string>.Action |
||
doWithCheckingState ( string>.Action |
||
doWithoutCheckingName ( string>.Action |
||
getHeaderInfo ( string name ) : WebSocketSharp.Net.HttpHeaderInfo | ||
isRestricted ( string name, bool response ) : bool | ||
removeWithoutCheckingName ( string name, string unuse ) : void | ||
setWithoutCheckingName ( string name, string value ) : void |
public Add ( HttpRequestHeader header, string value ) : void | ||
header | HttpRequestHeader |
/// One of the |
value | string |
/// A |
return | void |
public Add ( HttpResponseHeader header, string value ) : void | ||
header | HttpResponseHeader |
/// One of the |
value | string |
/// A |
return | void |
public Add ( string header ) : void | ||
header | string |
/// A |
return | void |
public Add ( string name, string value ) : void | ||
name | string |
/// A |
value | string |
/// A |
return | void |
protected AddWithoutValidate ( string headerName, string headerValue ) : void | ||
headerName | string |
/// A |
headerValue | string |
/// A |
return | void |
public Get ( int index ) : string | ||
index | int |
/// An |
return | string |
public Get ( string name ) : string | ||
name | string |
/// A |
return | string |
public GetKey ( int index ) : string | ||
index | int |
/// An |
return | string |
public GetValues ( int index ) : string[] | ||
index | int |
/// An |
return | string[] |
public GetValues ( string header ) : string[] | ||
header | string |
/// A |
return | string[] |
public static IsRestricted ( string headerName ) : bool | ||
headerName | string |
/// A |
return | bool |
public static IsRestricted ( string headerName, bool response ) : bool | ||
headerName | string |
/// A |
response | bool |
/// |
return | bool |
public OnDeserialization ( object sender ) : void | ||
sender | object |
/// An |
return | void |
public Remove ( HttpRequestHeader header ) : void | ||
header | HttpRequestHeader |
/// One of the |
return | void |
public Remove ( HttpResponseHeader header ) : void | ||
header | HttpResponseHeader |
/// One of the |
return | void |
public Remove ( string name ) : void | ||
name | string |
/// A |
return | void |
public Set ( HttpRequestHeader header, string value ) : void | ||
header | HttpRequestHeader |
/// One of the |
value | string |
/// A |
return | void |
public Set ( HttpResponseHeader header, string value ) : void | ||
header | HttpResponseHeader |
/// One of the |
value | string |
/// A |
return | void |
public Set ( string name, string value ) : void | ||
name | string |
/// A |
value | string |
/// A |
return | void |
protected WebHeaderCollection ( |
||
serializationInfo |
/// A |
|
streamingContext |
/// A |
|
return | System |
public this ( HttpRequestHeader header ) : string | ||
header | HttpRequestHeader |
/// One of the |
return | string |
public this ( HttpResponseHeader header ) : string | ||
header | HttpResponseHeader |
/// One of the |
return | string |