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