CachedResponse SetHeader Method (String, String)C# API
Sets an HTTP response header for this CachedResponse, as a name/value pair.

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

public virtual void SetHeader(
	string header,
	string value
)

Parameters

header
Type: System String
The header name.
value
Type: System String
The header value.
Examples

The following example demonstrates setting the "Expires" response header
CachedResponse cachedResponse = new CachedResponse("http://myDomain/weather/images/symbols/57x57/3.gif");
// Set the Expires response header
cachedResponse.SetHeader("Expires", "Fri, 22 Aug 2008 16:23:24 GMT");
See Also