CachedResponse ContainsHeader Method C# API
Determines whether this CachedResponse contains the specified HTTP header.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.5.77 (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 the header was found; otherwise, false.
Examples

The following example demonstrates checking the "Expires" header.
if (cachedResponse.ContainsHeader("Expires"))
{
    WriteMessage(string.Format("Expires={0}", cachedResponse.GetHeaderValue("Expires")));
}
See Also