View Source Plausible.HTTPClient (Plausible v0.0.1)

HTTP Client built on top of Finch.

By default, request parameters are json-encoded.

If a raw binary value is supplied, no encoding is performed. If x-www-form-urlencoded content-type is set in headers, URL encoding is invoked.

Summary

Functions

Link to this function

get(url, headers \\ [], params \\ nil)

View Source

Make a GET request

@spec impl() :: Plausible.HTTPClient
Link to this function

post(url, headers \\ [], params \\ nil, finch_req_opts \\ [])

View Source

Make a POST request