Type Alias RequestOptions

RequestOptions: {
    baseUrl: "https://sxcu.net/api/" | "https://cancer-co.de/";
    body?: BodyInit | null;
    params?: URLSearchParams;
    path: string;
    statusErrors: number[];
    subdomain?: string;
    type: "GET" | "POST";
}

Request options.

Type declaration

  • baseUrl: "https://sxcu.net/api/" | "https://cancer-co.de/"

    Base url of the request.

  • Optionalbody?: BodyInit | null

    Body of the request. (If needed.)

  • Optionalparams?: URLSearchParams

    URL parameters. (If needed.)

  • path: string

    Request path to append to the base url. Do not include the first slash.

  • statusErrors: number[]

    Array of error status codes.

  • Optionalsubdomain?: string

    The subdomain to make the request too. (If applicable.) This option will override baseUrl. Example; example.shx.gg

  • type: "GET" | "POST"

    Type of request.