Function request

  • Returns

    response

    Type Parameters

    • ReturnType = unknown

    • BodyType extends object = object

    Parameters

    • method: string

      http method

    • loc: string

      url relative to api url

    • Optional body: BodyType

      request data

    Returns Promise<ReturnType>

Generated using TypeDoc