put()

Performs a PUT request to the specified endpoint URL.

Octave.Http.put(url, headers, data)

Parameters

ParameterTypeRequiredDescription
urlStringYesURL to POST.
headersStringNoA mapping of header names and values.
dataStringNoThe POST body.

Returns

Returns a response object with the following keys:

FieldTypeDescription
headersStringMap of header keys and values.
statusIntegerHTTP status code.
messageStringHTTP status message.
contentTypeStringValue of HTTP Content-Type header.
contentStringResponse body.