Adds a URL to the list of sub-requests that will be fetched from the web server
when this Request is sent.
Namespace: Facilita.WebAssembly: clrWebBrowser (in clrWebBrowser.dll) Version: 9.5.8.37 (1.0.0.0)
Syntax
public void AddSubRequest( Protocol protocol, IpEndPoint ipEndPoint, string path )
Parameters
- protocol
- Type: Facilita.Web Protocol
The Protocol of the url.
- ipEndPoint
- Type: Facilita.Native IpEndPoint
The IpEndPoint of the url.
- path
- Type: System String
The path of the url.
Remarks
Examples
Url url1 = new Url(protocol1, localhost, "/"); // Create a GET request Request request1 = Browser.CreateRequest(HttpMethod.GET, url1, 1); // Add a sub-request request1.AddSubRequest(protocol1, localhost, "/Themes/TestPlant/Content/images/orange_button_bg.gif"); // Send the top-level request to the server, followed by all of the sub-requests Response response1 = request1.Send();
See Also