---
url: https://docs.moqtail.dev/ts/api/model/classes/Authority.md
---
# Class: Authority

Raw-QUIC only: the authority component of the `moqt://` URI, carried in SETUP because
there is no HTTP CONNECT to carry it.

Client-only; MUST NOT be sent by a server or over WebTransport. moqtail-ts always
connects over WebTransport, so its own handshake never sends this — see
`MOQtailClient.init`.

## Implements

* [`Parameter`](../interfaces/Parameter.md)

## Constructors

### Constructor

> **new Authority**(`authority`): `Authority`

#### Parameters

##### authority

`string`

#### Returns

`Authority`

## Properties

### authority

> `readonly` **authority**: `string`

***

### TYPE

> `readonly` `static` **TYPE**: [`Authority`](../enumerations/SetupOptionType.md#authority) = `SetupOptionType.Authority`

## Methods

### toKeyValuePair()

> **toKeyValuePair**(): [`KeyValuePair`](KeyValuePair.md)

#### Returns

[`KeyValuePair`](KeyValuePair.md)

#### Implementation of

[`Parameter`](../interfaces/Parameter.md).[`toKeyValuePair`](../interfaces/Parameter.md#tokeyvaluepair)

***

### fromKeyValuePair()

> `static` **fromKeyValuePair**(`pair`): `Authority` | `undefined`

#### Parameters

##### pair

[`KeyValuePair`](KeyValuePair.md)

#### Returns

`Authority` | `undefined`
