import { type Serializer } from "https://deno.land/x/acorn@0.0.3/types.d.ts";
An interface for handling the responses from a route handler in a structured way.
Methods
A method that takes a value returned from a response handler, along with
any parameters parsed when matching the route and the original request,
returning a full Response
which will be used to respond to the
request.
If the route handler returns a Response
or BodyInit
this
method will not be called.
If this method is provided, the .stringify()
method will not be called,
even if it exists.