dot-h2o.doSafePOST: Perform a safe (i.e. error-checked) HTTP POST request to an...

.h2o.doSafePOSTR Documentation

Perform a safe (i.e. error-checked) HTTP POST request to an H2O cluster.

Description

This function validates that no CURL error occurred and that the HTTP response code is successful. If a failure occurred, then stop() is called with an error message. Since all necessary error checking is done inside this call, the valid payload is directly returned if the function successfully finishes without calling stop().

Usage

.h2o.doSafePOST(h2oRestApiVersion, urlSuffix, parms, fileUploadInfo, ...)

Arguments

h2oRestApiVersion

(Optional) A version number to prefix to the urlSuffix. If no version is provided, a default version is chosen for you.

urlSuffix

The partial URL suffix to add to the calculated base URL for the instance

parms

(Optional) Parameters to include in the request

fileUploadInfo

(Optional) Information to POST (NOTE: changes Content-type from XXX-www-url-encoded to multi-part). Use fileUpload(normalizePath("/path/to/file")).

...

(Optional) Additional parameters.

Value

The raw response payload as a character vector


h2o documentation built on May 29, 2024, 4:26 a.m.