Hierarchy

  • Transport

Constructors

Methods

Constructors

Methods

  • Parameters

    • api_url: string
    • api_key: string

    Returns Promise<void>

  • Parameters

    • method: "POST" | "GET"
    • path: string
    • content: string | Uint8Array = ''
    • contentType: "application/json" | "application/octet-stream" = 'application/json'
    • headers: {
          X-Touca-Submission-Mode?: "async" | "sync";
      } = {}
      • Optional X-Touca-Submission-Mode?: "async" | "sync"

    Returns Promise<{
        body: string;
        status: number;
    }>