Treatment request
http/client::request
Configuration
⬡ client: http/client::HttpClient
Parameters
↳ var method: HttpMethod (http/method::HttpMethod)
Inputs
⇥ req_headers: Block<StringMap> (std/data/string_map::StringMap)
⇥ url: Block<string>
Outputs
↦ completed: Block<void>
↦ data: Stream<byte>
↦ error: Block<string>
↦ failed: Block<void>
↦ finished: Block<void>
↦ res_headers: Block<StringMap> (std/data/string_map::StringMap)
↦ status: Block<HttpStatus> (http/status::HttpStatus)
Performs HTTP operation without data emission.
This treatment process HTTP request to the given url.
-
method: HTTP method used for the request. -
url: the URL to use for the request (combined with optional base from the client model), request starts as soon as the URL is transmitted. -
req_headers: the headers to use for the request (combined with ones defined at client level). -
status: HTTP status response. -
res_headers: the headers contained in the response. -
data: data received as response, corresponding to the HTTP body. -
completed: emitted when the incoming request finished successfully. -
failed: emitted if the incoming request failed technically. -
error: message containing error when request failed technically. -
finished: emitted when the incoming request finished, regardless of state.