Skip to content
Français

TriggerHttpRequest

import type { TriggerHttpRequest } from "@elie-laloum/outpost";
  • methodRequired
    string
    HTTP method; routes only receive POST.
  • pathRequired
    string
    Request path without query string.
  • headersRequired
    Readonly<Record<string, string | undefined>>
    Request headers with lowercase names; repeated headers are joined with commas.
  • bodyRequired
    Uint8Array<ArrayBufferLike>
    Raw body bytes, verified before any parsing.
export interface TriggerHttpRequest {
  readonly method: string;
  readonly path: string;
  readonly headers: Readonly<Record<string, string | undefined>>;
  readonly body: Uint8Array;
}