import { type RequestData } from "https://deno.land/x/cav@0.0.14/http.ts";
A metadata object generated once for every request.
Properties
A ResponseInit applied to the Rpc response after resolving and packing the value to send to the client. The Headers object is always available. If the resolved value is a Response object already, the status and statusText will be ignored but the headers will still be applied.
The request path. This is intended to be modified by a Stack. When the RequestData is initially generated, this is equal to the url.pathname. As the request gets processed, the Stack matches this path against registered routes. When a route matches and has a forwarded-wildcard (ends in "/*"), this path will be the value of that wildcard inside the next handler (either an Rpc or Stack). When a route matches and doesn't have that wildcard, the Stack will modify this path to be "/" inside the next handler.