Skip to content

Lupa API Reference / network/types / SerializedMatch

Interface: SerializedMatch

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

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

Properties

headers?

optional headers?: Record<string, string>

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

HTTP headers required for a successful match.


methods?

optional methods?: string[]

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

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


type

type: "string" | "options"

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

Type of the matcher definition.


uri?

optional uri?: string

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

The URI or URL pattern to match against.