metatell Bot SDK - v2.0.0
    Preparing search index...
    interface Request {
        arrayBuffer: () => Promise<ArrayBuffer>;
        blob: () => Promise<Blob>;
        body: ReadableStream<any> | null;
        bodyUsed: boolean;
        bytes: () => Promise<Uint8Array<ArrayBufferLike>>;
        cache: RequestCache;
        clone: () => Request;
        credentials: RequestCredentials;
        destination: RequestDestination;
        duplex: "half";
        formData: () => Promise<FormData>;
        headers: Headers;
        integrity: string;
        json: () => Promise<unknown>;
        keepalive: boolean;
        method: string;
        mode: RequestMode;
        redirect: RequestRedirect;
        referrer: string;
        referrerPolicy: ReferrerPolicy;
        signal: AbortSignal;
        text: () => Promise<string>;
        url: string;
    }

    Hierarchy (View Summary)

    Index
    arrayBuffer: () => Promise<ArrayBuffer>
    blob: () => Promise<Blob>
    body: ReadableStream<any> | null
    bodyUsed: boolean
    bytes: () => Promise<Uint8Array<ArrayBufferLike>>
    clone: () => Request
    credentials: RequestCredentials
    destination: RequestDestination
    duplex: "half"
    formData: () => Promise<FormData>

    This method is not recommended for parsing multipart/form-data bodies in server environments. It is recommended to use a library such as @fastify/busboy as follows:

    import { Busboy } from '@fastify/busboy'
    import { Readable } from 'node:stream'

    const response = await fetch('...')
    const busboy = new Busboy({ headers: { 'content-type': response.headers.get('content-type') } })

    // handle events emitted from `busboy`

    Readable.fromWeb(response.body).pipe(busboy)
    headers: Headers
    integrity: string
    json: () => Promise<unknown>
    keepalive: boolean
    method: string
    redirect: RequestRedirect
    referrer: string
    referrerPolicy: ReferrerPolicy
    signal: AbortSignal
    text: () => Promise<string>
    url: string