RouteHandlerFunction

To learn how to use RouteHandlerFunction, see Server-Side Routing.

RouteHandlerFunction takes:

It returns a RouteHandlerViewResponse.

A ViewRequest object has to have:

  • a URL
  • a path (requestPath)

ViewRequest can optionally have any number of:

  • parameters (params)
  • queries (query)

For example, the ViewRequest object for the request get http://www.example.com/custom/thing?sort=desc looks like this.

A HandlerContext object has to have:

The RouteHandlerViewApi calls the functions:

A RouteHandlerView object has this syntax:

See Also