Table of Contents

Class LocalApiToken

Namespace
VpnHood.AppLib.Api.App
Assembly
VpnHood.AppLib.Api.dll

Provides the local web host's token as its address carries it: after #, which a browser never sends, so whatever loads the page hands it the token.

public static class LocalApiToken
Inheritance
LocalApiToken
Inherited Members

Methods

Fragment(string)

Makes the address's fragment that carries a token.

public static string Fragment(string token)

Parameters

token string

The token.

Returns

string

The fragment, as #token=….

Read(Uri)

Reads the token an address carries.

public static string? Read(Uri url)

Parameters

url Uri

The address.

Returns

string

The token, or null where the address carries none, as a remote listener's.

Exceptions

InvalidOperationException

url is a relative address.