NormalizePath.redirecting constructor

const NormalizePath.redirecting({
  1. TrailingSlash slash = TrailingSlash.strip,
})

Normalizes by redirecting the client to the canonical form.

A 308 keeps the method, so a POST to /todos/ arrives at /todos as a POST rather than being turned into a GET.

Implementation

const NormalizePath.redirecting({this.slash = TrailingSlash.strip})
    : redirect = true;