Skip to content

michaelbearne/req_client_base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReqClientBase

Is a macro that can be used to provided a base implementation of Req get, post, put, patch and delete http calls configured with telemetry and a circuit breaker.

Installation

def deps do
  [
    {:req_client_base, "~> 0.1.0"}
  ]
end

Example

defmodule Some.Http.Client do
  use ReqClientBase, service_name: :some_client

  def client_call do
    get(url: "https://some.url")
  end
end

About

A utility macro for building HTTP clients with Req in Elixir.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published