Last date modified: 2025-Jul-02

Interface: IHeaders

Experimental

This API is in preview and not ready for production use. Expect breaking changes in the future. Represents http request/response headers. This is a subset of the Aurelia Headers class.

Methods

add()

add(key, value): void

Experimental

Parameters

key: string

The header key.

value: string

The header value.

Returns

void


clear()

clear(): void

Experimental

Returns

void


get()

get(key): string

Experimental

Parameters

key: string

The header key.

Returns

string

The header value.


has()

has(header): boolean

Experimental

Parameters

header: string

The header key to check.

Returns

boolean

True if it exists, false otherwise.

Return to top of the page
Feedback