ArweaveSdkEx.Utils.ExHttp (arweave_sdk_ex v0.1.8)

the encapsulation of http

Link to this section Summary

Functions

+-------------+ | get request | +-------------+

+----------------------+ | json_rpc_constructer | +----------------------+

+--------------+ | post request | +--------------+

Link to this section Functions

Specs

get(any()) :: {:error, String.t()} | {:ok, any()}

+-------------+ | get request | +-------------+

Specs

get(String.t(), atom()) :: {:error, String.t()} | {:ok, any()}
Link to this function

json_rpc(method, id)

Specs

json_rpc(String.t(), integer()) :: map()
json_rpc(String.t(), map()) :: map()

+----------------------+ | json_rpc_constructer | +----------------------+

Link to this function

post(url, body)

Specs

post(String.t(), map()) :: {:error, String.t()} | {:ok, any()}

+--------------+ | post request | +--------------+

Link to this function

post(url, body, type)

Specs

post(String.t(), map(), atom()) :: {:error, String.t()} | {:ok, any()}
Link to this function

post(url, body, type, atom)