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?
optionalheaders?:Record<string,string>
Defined in: src/network/types.ts:133
HTTP headers required for a successful match.
methods?
optionalmethods?: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?
optionaluri?:string
Defined in: src/network/types.ts:123
The URI or URL pattern to match against.