Mono Class Library: System.Web.HttpWorkerRequest Overview | Members

System.Web.HttpWorkerRequest.GetKnownRequestHeader Method

Returns the value of a known header.

public virtual string GetKnownRequestHeader (int index)

Parameters

index
The index is one of the constants defined in this class as the public fields.

Returns

The value of the given header on the HTTP request or null if the header value was not set.

Remarks

For example to obtain the value of the Content-Length header, you can use:

C# Example

    string value = worker_request.GetKnownRequestHeader (HttpWorkerRequest.HeaderContentLength);
  

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0