Description Usage Arguments Details Value Examples
Creates a mockup of a route object. A mockup simulates what sort of response is generated by a route given a method, uri, and headers (optional).
1 | mockup(r)
|
r |
A route object. |
Unfortunately, httpuv
requires a least one header is specified.
Therefore, headers
defaults to and must have at least one field
specified.
A route mockup will return the response object returned by the route handler. However, if the method passed to the mockup is not handled by the route or if the path is not handled by the route a 404 response object with a description as the body is returned.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.