Connection.Http (etl_core v0.1.55)

Module for working with the HTTP protocol

Summary

Functions

Link to this function

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

GET request

Parameters:

- url: String.

- headers: List of tuple.

- timeout: Integer.

- recv_timeout: Integer.

Return:

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

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

POST request

Parameters:

- body: String.

- url: String.

- headers: List of tuple.

- recv_timeout: Integer.

Return:

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