Browse documentation

RequestContext

Type. Normalized request plugin input.

Table of contents

Category

Type

Type import

ts
import type { RequestContext } from "valyrian.js/request";

Public signature

ts
interface RequestContext { method: string; url: URL; data?: Record<string, unknown> | null; options: RequestInit & Record<string, unknown>; }

Type usage

RequestContext carries the normalized method, URL, data and send options through request plugins.