Legatus.Canalis.Http.Client (legatus v0.2.0)

Copy Markdown View Source

Canalis.Http.Client est adaptor concretus ad :httpc.

This module performs low-level HTTP POST transport and response decode. It is transport-only and does not decide domain outcomes.

Summary

Functions

POST JSON-RPC request ad upstream.

Functions

post(request_map, upstream, token)

@spec post(map(), String.t(), String.t() | false) ::
  {pos_integer(), map()} | {:error, term()}

POST JSON-RPC request ad upstream.

Accipit request map, encode ad JSON, POST via :httpc, et reddit {status, body_map} vel {:error, reason}.