Request RemoveKeepSubRequestContentType 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.

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

public virtual void RemoveKeepSubRequestContentType(
	string typeFragment
)

Parameters

typeFragment
Type: System String
Sub-request responses that have a Content-Type header containing this typeFragment will no longer be kept.
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)
request.removeKeepSubRequestContentType("text");
See Also