PeachPDF
PeachPDF.Network.HttpClientNetworkLoader
HttpClientNetworkLoader Constructors
| Overloads | |
|---|---|
| HttpClientNetworkLoader(HttpClient, string) | Creates a loader for the root document at primaryContentsUri. |
| HttpClientNetworkLoader(HttpClient, Uri) | An RNetworkLoader that fetches the root HTML document and every resource it references (stylesheets, images) over HTTP(S) using a caller-supplied System.Net.Http.HttpClient. The caller controls the System.Net.Http.HttpClient’s lifetime, so custom headers, authentication, proxies, timeouts, and System.Net.Http.HttpMessageHandler chains are all supported without any PeachPDF-specific API. |
HttpClientNetworkLoader(HttpClient, string) Constructor
Creates a loader for the root document at primaryContentsUri.
public HttpClientNetworkLoader(System.Net.Http.HttpClient httpClient, string primaryContentsUri);
Parameters
httpClient System.Net.Http.HttpClient
The client used to fetch the root document and all referenced resources.
primaryContentsUri System.String
The URI of the root HTML document; also used as BaseUri for resolving relative references.
HttpClientNetworkLoader(HttpClient, Uri) Constructor
An RNetworkLoader that fetches the root HTML document and every resource it references (stylesheets, images) over HTTP(S) using a caller-supplied System.Net.Http.HttpClient. The caller controls the System.Net.Http.HttpClient’s lifetime, so custom headers, authentication, proxies, timeouts, and System.Net.Http.HttpMessageHandler chains are all supported without any PeachPDF-specific API.
public HttpClientNetworkLoader(System.Net.Http.HttpClient httpClient, System.Uri? primaryContentsUri);
Parameters
httpClient System.Net.Http.HttpClient
The client used to fetch the root document and all referenced resources.
primaryContentsUri System.Uri
The URI of the root HTML document; also used as BaseUri for resolving relative references.