@@ -37,6 +37,7 @@ class HTTPError extends Error {
3737
3838/**
3939 * Generates an object suitable for logging out of a request object
40+ *
4041 * @param {!Request } req the request
4142 * @param {?RegExp } whitelistRE the RegExp used to filter headers
4243 * @return {!Object } an object containing the key components of the request
@@ -68,6 +69,7 @@ function reqForLog(req, whitelistRE) {
6869
6970/**
7071 * Serialises an error object in a form suitable for logging.
72+ *
7173 * @param {!Error } err error to serialise
7274 * @return {!Object } the serialised version of the error
7375 */
@@ -92,6 +94,7 @@ function errForLog(err) {
9294 * promised try blocks so as to allow catching all errors,
9395 * regardless of whether a handler returns/uses promises
9496 * or not.
97+ *
9598 * @param {!Object } route the object containing the router and path to bind it to
9699 * @param {!Application } app the application object
97100 */
@@ -130,6 +133,7 @@ function wrapRouteHandlers(route, app) {
130133
131134/**
132135 * Generates an error handler for the given applications and installs it.
136+ *
133137 * @param {!Application } app the application object to add the handler to
134138 */
135139function setErrorHandler ( app ) {
@@ -208,6 +212,7 @@ function setErrorHandler(app) {
208212
209213/**
210214 * Creates a new router with some default options.
215+ *
211216 * @param {?Object } [opts] additional options to pass to express.Router()
212217 * @return {!Router } a new router object
213218 */
@@ -227,6 +232,7 @@ function createRouter(opts) {
227232
228233/**
229234 * Adds logger to the request and logs it.
235+ *
230236 * @param {!* } req request object
231237 * @param {!Application } app application object
232238 */
0 commit comments