VectSharp  2.2.1
A light library for C# vector graphics
VectSharp.Markdown.HTTPUtils Class Reference

Contains utilities to resolve absolute and relative URIs. More...

Static Public Attributes

static string path
 Resolves an image Uri, by downloading the image file if necessary. It also takes care of ensuring that the file extension matches the format of the file. More...
 

Properties

static bool LogDownloads = true [get, set]
 Determines whether every file that is downloaded should be logged to the standard error stream. More...
 

Detailed Description

Contains utilities to resolve absolute and relative URIs.

Definition at line 244 of file HtmlTag.cs.

Member Data Documentation

◆ path

string VectSharp.Markdown.HTTPUtils.path
static

Resolves an image Uri, by downloading the image file if necessary. It also takes care of ensuring that the file extension matches the format of the file.

Parameters
uriThe address of the image.
baseUriStringThe base uri to use for relative uris.
Returns
A tuple containing the local path of the image file (either the original image, or a local copy of a remote file) and a boolean value indicating whether the image was fetched from a remote location and should be deleted after the program is done with it.

Definition at line 257 of file HtmlTag.cs.

Property Documentation

◆ LogDownloads

bool VectSharp.Markdown.HTTPUtils.LogDownloads = true
staticgetset

Determines whether every file that is downloaded should be logged to the standard error stream.

Definition at line 249 of file HtmlTag.cs.


The documentation for this class was generated from the following file: