bothy-sdk
    Preparing search index...

    Function exemptOperationOf

    • Returns the key of IDEMPOTENT_EXEMPT_OPERATIONS a request matches, if any.

      Parameters

      • method: string

        The HTTP method.

      • pathOrUrl: string

        The request URL, its path or a path template.

      Returns string | undefined

      The key METHOD /path/template, or undefined.

      exemptOperationOf("POST", "https://example.com/api/v1/runs/r1/start");
      // "POST /runs/{run_id}/start"