WebBrowser RemoveDefaultKeepSubRequestContentType Method C# API
Removes a Content-Type fragment, so the content of sub-request responses that match the specified Content-Type fragment will no longer be kept by default for any subsequent Request objects created by this WebBrowser.

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

public virtual void RemoveDefaultKeepSubRequestContentType(
	string typeFragment
)

Parameters

typeFragment
Type: System String
Sub-request responses that have a Content-Type header containing this typeFragment will no longer be kept by default.
Remarks

In general, it is not necessary to retain content for sub-requests, and it will incur a performance penalty to do so. However, a situation may arise where it is necessary to check or extract a value from a sub-response. In this situation, you can specify that the content of certain sub-responses should be retained.
Examples

The following example demonstrates discarding the content of any sub-requests that have a Content-Type starting with "text" (e.g. text/html, text/xml).
// Don't keep the content of any sub-requests that have a Content-Type starting with "text" (e.g. text/html, text/xml)
WebBrowser.RemoveDefaultKeepSubRequestContentType("text");
See Also