Skip to content

Lupa API Reference / network/types / SerializedMatch

Interface: SerializedMatch

Defined in: src/network/types.ts:102

Represents a serialized route matcher sent from the browser/client.

Properties

headers?

optional headers?: Record<string, string>

Defined in: src/network/types.ts:121

HTTP headers required for a successful match.


methods?

optional methods?: string[]

Defined in: src/network/types.ts:116

HTTP methods to match (e.g., ['GET', 'POST']).


type

type: "string" | "options"

Defined in: src/network/types.ts:106

Type of the matcher definition.


uri?

optional uri?: string

Defined in: src/network/types.ts:111

The URI or URL pattern to match against.