This is a contract API for HTTP libraries for enhanced flexibility.
You can easily mock this library and forget about the implementation details for tests. Change to a new HTTP client should not require any modifications in the business logic code.
If available in Hex, the package can be installed
by adding lm_http
to your list of dependencies in mix.exs
:
def deps do
[
{:lm_http, "~> 0.4.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/lm_http.