http client

Hierarchy

  • Client

Methods

  • http async request method

    Parameters

    • method: Method

      http request method

    • url: string

      the request url

    • Optional callOptions: "http".Request

      the request options

    Returns Promise<"http".Response>

    Since

    24.7.0 only js2.0 support

  • get sync request response value

    notes: only get request's response, cannot get requestAsync's response

    Returns "http".Response