Method: RestClient::Request#default_headers
- Defined in:
- lib/restclient/request.rb
#default_headers ⇒ Hash<Symbol, String>
Default headers set by RestClient. In addition to these headers, servers will receive headers set by Net::HTTP, such as Accept-Encoding and Host.
586 587 588 589 590 591 |
# File 'lib/restclient/request.rb', line 586 def default_headers { :accept => '*/*', :user_agent => RestClient::Platform.default_user_agent, } end |