ct_containers_http (ct_containers v0.1.1)

Link to this section Summary

Functions

Returns the plain response body without json decode
Do post and ignore the body.

Link to this section Functions

-spec delete(binary()) -> {integer(), map()}.
Link to this function

delete_plain(Url)

-spec delete_plain(binary()) -> {integer(), binary()}.
-spec get(binary()) -> {300..500, map() | [map()]}.
-spec get_plain(binary()) -> {ok, binary()}.
Returns the plain response body without json decode
Link to this function

post(Url, Payload)

-spec post(binary(), #{binary() => binary()}) -> {integer(), map()}.
Link to this function

post_plain(Url, Payload)

-spec post_plain(binary(), #{binary() => binary()}) -> {integer(), binary()}.
Do post and ignore the body.
Link to this function

url_encode(Url)