Treatment put
http/client/util::put
Parameters
↳ var headers:
Option<StringMap> = _
(std/data/string_map::StringMap
)
↳ var url:
string
Inputs
⇥ data:
Stream<byte>
Outputs
↦ completed:
Block<void>
↦ error:
Block<string>
↦ failed:
Block<void>
↦ finished:
Block<void>
↦ headers:
Block<StringMap>
(std/data/string_map::StringMap
)
↦ status:
Block<HttpStatus>
(http/status::HttpStatus
)
Performs HTTP PUT operation.
Parameters:
url
: the URL to call PUT on.headers
: headers to send in request.
Inputs:
data
: data sent in request, corresponding to the HTTP body.
Outputs:
status
: HTTP status response.headers
: headers received in response.data
: data received as response, corresponding to the HTTP body.completed
: emitted when the request finished successfully.failed
: emitted if the request failed technically.error
: message containing error when request failed technically.finished
: emitted when the request finished, regardless of state.
Also see MDN documentation.