Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • jsonToVariableStructure(jsonStr: string, variable: Variable): void
  • Parse the given JSON and fill the content of the variable with it.

    deprecated

    Use variable.fromJSON instead.

    Parameters

    • jsonStr: string

      The JSON string

    • variable: Variable

      The variable where to put the parsed JSON

    Returns void

    true if JSON was properly parsed

  • sendAsyncRequest(url: string, body: string, method: string, contentType: string, responseVar: Variable, errorVar: Variable): void
  • Send an asynchronous request to the specified URL, with the specified (text) body, method and contentType (defaults to application/x-www-form-urlencoded). The result is stored in the specified response variable. Any error is stored in the specified error variable.

    Parameters

    • url: string

      The URL to send the request to.

    • body: string

      The content to be sent.

    • method: string

      The method to use ("GET", "POST", "PUT", "HEAD", "DELETE", "PATCH", "OPTIONS")

    • contentType: string

      The content type. Defaults to application/x-www-form-urlencoded if empty.

    • responseVar: Variable

      The variable where to store the response text.

    • errorVar: Variable

      The variable where to store the error message or status code (if status >= 400).

    Returns void

  • sendAwaitableAsyncRequest(url: string, body: string, method: string, contentType: string, responseVar: Variable, errorVar: Variable): PromiseTask<void>
  • sendDeprecatedSynchronousRequest(host: any, uri: any, body: any, method: any, contentType: any, responseVar: any): void
  • variableStructureToJSON(variable: Variable): string

Generated using TypeDoc