Treatment get

http/client/util::get


Parameters

↳ var headers: Option<Map> = _ (std/data::Map)
↳ var url: string

Inputs

⇥ trigger: Block<void>

Outputs

↦ data: Stream<byte>
↦ failure: Block<string>
↦ headers: Block<Map> (std/data::Map)
↦ status: Block<HttpStatus> (http/status::HttpStatus)


Performs HTTP GET operation.

Parameters:

  • url: the URL to call GET on.
  • headers: headers to send in request.

Inputs:

  • trigger: starts the request.

Outputs:

  • status: HTTP status response.
  • headers: headers received in response.
  • data: data received as response, corresponding to the HTTP body.
  • failure: emitted if the request failed technically, containing the failure message.

Also see MDN documentation.