Zum Hauptinhalt springen

HttpClientResponse

HttpClientResponse = object

Properties​

status​

status: number

HTTP status code of the response (curls %{http_code}).

  • 200 = Ok If curl itself fails (exit code other than 0), * an error is thrown instead of returning a response.

data​

data: string

Response body (stdout from curl, without the appended status code)