Expand description
Router for Viz Web Framework
Structs§
- Path
- Matched route path infomation.
- Path
Tree - A path tree.
- Resources
- A resourceful route provides a mapping between HTTP verbs and URLs to handlers.
- Route
- A collection of verb-handler pair.
- Router
- A routes collection.
- Tree
- Store all final routes.
Functions§
- any
- Creates a route with a handler and any HTTP verbs.
- connect
- Creates a route with a handler and HTTP
CONNECT
verb pair. - delete
- Creates a route with a handler and HTTP
DELETE
verb pair. - get
- Creates a route with a handler and HTTP
GET
verb pair. - head
- Creates a route with a handler and HTTP
HEAD
verb pair. - on
- Creates a route with a handler and HTTP verb pair.
- options
- Creates a route with a handler and HTTP
OPTIONS
verb pair. - patch
- Creates a route with a handler and HTTP
PATCH
verb pair. - post
- Creates a route with a handler and HTTP
POST
verb pair. - put
- Creates a route with a handler and HTTP
PUT
verb pair. - trace
- Creates a route with a handler and HTTP
TRACE
verb pair.