dot-h2o.doRawGET function

Perform a low-level HTTP GET operation on an H2O instance

Perform a low-level HTTP GET operation on an H2O instance

Does not do any I/O level error checking. Caller must do its own validations. Does not modify the response payload in any way. Log the request and response if h2o.startLogging() has been called.

.h2o.doRawGET( conn = h2o.getConnection(), h2oRestApiVersion, urlSuffix, parms, ... )

Arguments

  • conn: H2OConnection
  • h2oRestApiVersion: (Optional) A version number to prefix to the urlSuffix. If no version is provided, the version prefix is skipped.
  • urlSuffix: The partial URL suffix to add to the calculated base URL for the instance
  • parms: (Optional) Parameters to include in the request
  • ...: (Optional) Additional parameters.

Returns

A list object as described above

Details

The return value is a list as follows: urlFinalcalculatedURL.url -- Final calculated URL. postBody -- The body of the POST request from client to server. curlErrorTRUEifasocketlevelerroroccurred.FALSEotherwise.curlError -- TRUE if a socket-level error occurred. FALSE otherwise. curlErrorMessage -- If curlError is TRUE a message about the error. httpStatusCodeTheHTTPstatuscode.Usually200iftherequestsucceeded.httpStatusCode -- The HTTP status code. Usually 200 if the request succeeded. httpStatusMessage -- A string describing the httpStatusCode. $payload -- The raw response payload as a character vector.

  • Maintainer: Tomas Fryda
  • License: Apache License (== 2.0)
  • Last published: 2024-01-11