Class: Faraday::Request
- Inherits:
-
Object
- Object
- Faraday::Request
- Defined in:
- lib/elasticsearch/transport/request.rb
Instance Method Summary collapse
Instance Method Details
#endpoint ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/elasticsearch/transport/request.rb', line 5 def endpoint URI.parse( ( self.params.any? ? "#{self.path}?#{Faraday::Utils::ParamsHash[params].to_query}" : self.path ).gsub(/([^:])\/{2,}/, '\1/') ) end |
#http_method ⇒ Object
15 16 17 |
# File 'lib/elasticsearch/transport/request.rb', line 15 def http_method self.method.to_s.upcase end |