You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Constructs a `RouteHandler` that matches a given method (`GET`, `POST`, etc) and
54
54
-`text(req, options)` - read the request body as a string
55
55
-`json(req, options)` - read the request body as parsed JSON
56
56
57
-
## Request helpers
57
+
###Request helpers
58
58
59
59
-`getHeader(req, header)` - returns the requested header if it was provided
60
60
-`fromRequest(fn)` - wraps a function in the form `(req: ServerRequest, ...rest) => any` to return an equivalent function that caches its results for the provided request
0 commit comments