Class: Riak::Client::NetHTTPBackend
- Inherits:
-
HTTPBackend
- Object
- HTTPBackend
- Riak::Client::NetHTTPBackend
- Defined in:
- riak-client/lib/riak/client/net_http_backend.rb
Overview
Uses the Ruby standard library Net::HTTP to connect to Riak. Conforms to the Riak::Client::HTTPBackend interface.
Instance Attribute Summary
Attributes inherited from HTTPBackend
Class Method Summary (collapse)
Methods inherited from HTTPBackend
#delete_object, #fetch_object, #get_bucket_props, #initialize, #link_walk, #list_buckets, #list_keys, #mapred, #ping, #reload_object, #set_bucket_props, #stats, #store_object
Methods included from HTTPBackend::ObjectMethods
#load_object, #reload_headers, #store_headers
Methods included from HTTPBackend::TransportMethods
#basic_auth_header, #client_id, #default_headers, #delete, #get, #head, #path, #post, #put, #return_body?, #root_uri, #valid_response?, #verify_path!, #verify_path_and_body!
Methods included from Util::Translation
Methods included from Util::Escape
Constructor Details
This class inherits a constructor from Riak::Client::HTTPBackend
Class Method Details
+ (Boolean) configured?
23 24 25 26 27 28 29 30 31 |
# File 'riak-client/lib/riak/client/net_http_backend.rb', line 23 def self.configured? begin require 'net/http' require 'openssl' true rescue LoadError, NameError false end end |