HttpFile

Description

sealed class Tinman.Core.IO.Files.HttpFile

Derived from

FileBase abstract

The HttpFile class is an implementation of the IFile interface that accesses a resource on a web server via HTTP/1.1 using byte range requests.

Public / Constructors

HttpFile


public constructor HttpFile → (3)

url in : string

[not-empty]
The URL of the web resource to access as a file.

http opt : ISimpleHttp = null

The HTTP helper object to use or null to use a default one.

path opt : Path = null

Optional Path value to use for this object. If null, Path.Unknown will be used.

Creates a new instance of HttpFile.

The constructor will not perform any HTTP requests.

Public / Methods

Listing

2 overloads


public static method Listing1 → (1)

url in : string

[not-null]
The file listing URL.

Specifies a file listing to avoid unnecessary HEAD requests.

IOException

If one or more file listing entries are invalid.


public static method Listing2 → (2)

url in : string

[not-null]
The file listing URL.

http in : ISimpleHttp

[not-null]
The HTTP object so use for fetching the listing.

Specifies a file listing to avoid unnecessary HEAD requests.

IOException

If one or more file listing entries are invalid.