Skip to main content
Module

x/cav/mod.ts>requestData

A server framework for Deno
Go to Latest
function requestData
Re-export
import { requestData } from "https://deno.land/x/cav@0.0.14/mod.ts";

Generates or returns a previously generated RequestData for a given request. If this is the first time requestData is being called for the given request, the RequestData object is generated and returned. Every other time the request passes through this function, the same object generated on the first call is returned without further modification.

If the request should be redirected before being processed, a Response will be returned instead.