On this page

Source Code: lib/RequestShortener.js#L16

Shortens absolute or verbose request strings so diagnostics and stats output can be rendered relative to a chosen base directory.

new RequestShortener(): RequestShortener
requestShortener.contextify(value): string
Source Code: lib/RequestShortener.js#L24
Attributes
value:string
Returns:string
requestShortener.shorten(request?): string | null | undefined
Source Code: lib/RequestShortener.js#L36
Attributes
request:string | null
Returns:string | null | undefined

Returns a request string rewritten relative to the configured directory when one is provided.