Connection.Http (etl_core v0.1.54)

Module for working with the HTTP protocol

Link to this section Summary

Link to this section Functions

Link to this function

get(url, headers \\ [{"Accept", "application/json"}], timeout \\ 15000, recv_timeout \\ 15000)

GET request

parameters

Parameters:

- url: String.

- headers: List of tuple.

- timeout: Integer.

- recv_timeout: Integer.

return

Return:

- {:ok, data} | {:error, data}
Link to this function

post(body, url, headers, recv_timeout \\ 15000)

POST request

parameters

Parameters:

- body: String.

- url: String.

- headers: List of tuple.

- recv_timeout: Integer.

return

Return:

- {:ok, data} | {:error, data}