Table of Contents

Class LibraryHttp

Namespace
EncDotNet.S100.Collections.Net
Assembly
EncDotNet.S100.Collections.dll

HTTP conventions of the Library's requests.

public static class LibraryHttp
Inheritance
LibraryHttp
Inherited Members

Fields

ProjectUri

The project's address, the contact in DefaultUserAgent.

public const string ProjectUri = "https://github.com/philliphoff/EncDotNet.S100"

Field Value

string

Properties

DefaultUserAgent

The User-Agent the Library identifies itself with when its client sets none: the library and its version, with the project's address as the contact (EncDotNet.S100/1.2.3 (+https://github.com/philliphoff/EncDotNet.S100)). The NWS API refuses requests without one and asks that it identify the application; no personal address is sent. Hosts set their own (the viewer's names SoundCharts).

public static string DefaultUserAgent { get; }

Property Value

string

Methods

ProductUserAgent(string, Assembly)

A User-Agent naming product at assembly's version, with the project's address.

public static string ProductUserAgent(string product, Assembly assembly)

Parameters

product string

The product token (no spaces), e.g. SoundCharts.

assembly Assembly

The assembly whose informational version is the product version.

Returns

string