Skip to content

Commit

Permalink
[API] Add headers to custom client documentation (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
uesteibar authored and estolfo committed Oct 24, 2018
1 parent 8e8bcbe commit 9b650b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elasticsearch-api/README.md
Expand Up @@ -86,8 +86,8 @@ class MySimpleClient

CONNECTION = ::Faraday::Connection.new url: 'http://localhost:9200'

def perform_request(method, path, params, body)
puts "--> #{method.upcase} #{path} #{params} #{body}"
def perform_request(method, path, params, body, header = nil)
puts "--> #{method.upcase} #{path} #{params} #{body} #{headers}"

CONNECTION.run_request \
method.downcase.to_sym,
Expand Down

0 comments on commit 9b650b2

Please sign in to comment.