Class: RSolr::Connection::NetHttp
- Inherits:
-
Object
- Object
- RSolr::Connection::NetHttp
- Defined in:
- lib/sunspot-rails-http-basic-auth/rsolr/connection/net_http.rb
Instance Method Summary collapse
Instance Method Details
#get(path, params = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/sunspot-rails-http-basic-auth/rsolr/connection/net_http.rb', line 5 def get(path, params={}) url = build_url(path, params) net_http_response = basic_auth_get_request(url) create_http_context(net_http_response, url, path, params) end |
#post(path, data, params = {}, headers = {}) ⇒ Object
11 12 13 14 15 |
# File 'lib/sunspot-rails-http-basic-auth/rsolr/connection/net_http.rb', line 11 def post(path, data, params={}, headers={}) url = build_url(path, params) net_http_response = basic_auth_post_request(url, data, headers) create_http_context(net_http_response, url, path, params, data, headers) end |