Request ContainsHeader Method C# API
Determines whether this Request contains a particular HTTP header.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.4.0.26 (1.0.0.0)
Syntax

public virtual bool ContainsHeader(
	string header
)

Parameters

header
Type: System String
The HTTP header to check for.

Return Value

true if this Request contains the specified header; otherwise, false.
Examples

The following example demonstrates getting the "Content-Type" header of a request.
if (request.containsHeader("Content-Type"))
{
    WriteMessage(string.format("Content-Type=%s", request.GetHeaderValue("Content-Type")));
}
See Also