HttpEx
View SourceHttpEx is an Elixir HTTP abstraction library to easily log, trace and mock your HTTP calls.
Note: work in progress. Things to come:
- Add support for different HTTP clients (HTTPoison, Finch)
- Add support for different tracing backends (currently only supports OpenTelemetry)
- Add support for different logger backends
Installation
If available in Hex, the package can be installed
by adding http_ex
to your list of dependencies in mix.exs
:
def deps do
[
{:http_ex, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/http_ex.
Mocks
TODO