interface RawRequest {
    method:
        | "GET"
        | "POST"
        | "PUT"
        | "PATCH"
        | "DELETE";
    path: string;
    requestBody: undefined | string | FormData;
    responseBody:
        | null
        | string
        | Buffer
        | Record<string, unknown>;
    route: string;
    withAuth: boolean;
}

Properties

method:
    | "GET"
    | "POST"
    | "PUT"
    | "PATCH"
    | "DELETE"

the method of the request

path: string

the path of the request

requestBody: undefined | string | FormData

the body sent with the request

responseBody:
    | null
    | string
    | Buffer
    | Record<string, unknown>

the body we received

route: string

the name of the route used in the request

withAuth: boolean

if the request used authorization