Router Module
Module for efficient HTTP routing with path parameter support
Types
| Type | Description |
Functions and values
| Function or value | Description |
Full Usage:
addRoute router pattern methods handler
Parameters:
Router
pattern : string
methods : HttpMethod list
handler : WebPart
Returns: Router
|
|
Full Usage:
matchPattern pattern path
Parameters:
RoutePattern
path : string
Returns: (string * string) list option
|
|
|
|
Full Usage:
route methods path handler
Parameters:
HttpMethod list
path : string
handler : WebPart
Returns: HttpMethod list * string * WebPart
|
|
|
|
|
|
|
|
Full Usage:
tryRoute router ctx
Parameters:
Router
ctx : HttpContext
Returns: Async<HttpContext option>
|