HttpClientNetworkLoader Class
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 class HttpClientNetworkLoader : PeachPDF.Network.RNetworkLoader
Inheritance System.Object → RNetworkLoader → HttpClientNetworkLoader
| Properties |
|
| BaseUri |
The document’s base URL, used to resolve relative href, src, and CSS url() references. If null, relative references are resolved against the local file system. |
| Methods |
|
| GetPrimaryContents() |
Returns the root HTML document as a string. Called once at the start of rendering when null is passed as the HTML argument to a PdfGenerator.GeneratePdf/AddPdfPages overload. |
| GetResourceStream(RUri) |
Returns the content of an external resource (a stylesheet or image) referenced by the document, or null if the resource cannot be resolved. |