Sarraf API
    Preparing search index...

    Interface MockRequest

    interface MockRequest {
        body?: string;
        form?: Record<string, string | string[]>;
        headers: Record<string, string>;
        json?: unknown;
        method: string;
        url: URL;
    }
    Index
    body?: string
    form?: Record<string, string | string[]>

    Multipart / urlencoded body fields. Repeated fields keep every value.

    headers: Record<string, string>
    json?: unknown

    Parsed JSON body, or undefined.

    method: string
    url: URL