Better Payment 0.11.1 API
    Preparing search index...

    Interface NodeRequestLike

    The parts of Express's (and Node's) request the adapter uses

    interface NodeRequestLike {
        body?: unknown;
        headers: Record<string, string | string[] | undefined>;
        method?: string;
        originalUrl?: string;
        readableEnded?: boolean;
        url?: string;
        "[asyncIterator]"(): AsyncIterator<
            string
            | Uint8Array<ArrayBufferLike>,
            any,
            any,
        >;
    }

    Hierarchy

    • AsyncIterable<Uint8Array | string>
      • NodeRequestLike
    Index
    body?: unknown

    Set by a body parser (express.json(), express.urlencoded(), express.text())

    headers: Record<string, string | string[] | undefined>
    method?: string
    originalUrl?: string

    Express: the full URL, also when the middleware is mounted on a path

    readableEnded?: boolean

    True once the request stream has been read (by a body parser)

    url?: string
    • Returns AsyncIterator<string | Uint8Array<ArrayBufferLike>, any, any>