PokéRogue
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    base: string
    ERR_GENERIC: string = "There was an error"
    ERR_USERNAME_NOT_FOUND: string = "Username not found!"

    Methods

    • Send an HTTP POST request.

      Parameters

      • path: string

        The path to send the request to

      • OptionalbodyData: string | Record<string, any>

        The body-data to send; will be stringified if needed

      • OptionaldataType: "json"

        (Default "json") The type of data to send

      Returns Promise<Response>

    • Send an HTTP POST request.

      Parameters

      • path: string

        The path to send the request to

      • bodyData: Record<string, any>

        The body-data to send; will be stringified if needed

      • dataType: "form-urlencoded"

        (Default "json") The type of data to send

      Returns Promise<Response>