trace<T> method

MethodRouter trace<T>(
  1. Endpoint<T> endpoint, {
  2. int status = 200,
})

Adds a TRACE endpoint.

Rarely wanted: the specification has it echo the request back, which leaks headers a proxy added, so most deployments refuse it outright. It is here so a router can answer rather than 405 when one is needed.

Implementation

MethodRouter trace<T>(Endpoint<T> endpoint, {int status = 200}) =>
    on('TRACE', endpoint, status: status);