Module: Fetch::API

Defined in:
lib/fetch/api.rb

Class Method Summary collapse

Class Method Details

.fetch(resource, method: :get, headers: [], body: nil, redirect: :follow) ⇒ Object



7
8
9
# File 'lib/fetch/api.rb', line 7

def fetch(resource, method: :get, headers: [], body: nil, redirect: :follow)
  Client.instance.fetch(resource, method:, headers:, body:, redirect:)
end