Adds a URL, so the content of sub-request responses that match the specified URL
fragment will be kept.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.8.37 (1.0.0.0)
public virtual void AddKeepSubRequestContentUrl(
string urlFragment
)
public virtual void AddKeepSubRequestContentUrl(
string urlFragment
)
Parameters
- urlFragment
- Type: System String
The responses from sub-requests that match this urlFragment will be kept.
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.
The following example demonstrates keeping the content of the sub-request with the url
http://localhost/images/magnifying-glass.png
request.AddKeepSubRequestContentUrl("http://localhost/images/magnifying-glass.png");
// Keep the content of the sub-request with the url http://localhost/images/magnifying-glass.png
request.AddKeepSubRequestContentUrl("http://localhost/images/magnifying-glass.png");