Tatsuro Hisamori > Data-Riak-Fast-0.03 > Data::Riak::Fast::HTTP

Download:
Data-Riak-Fast-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

host

The host the Riak server is on. Can be set via the environment variable DATA_RIAK_HTTP_HOST, and defaults to 127.0.0.1.

port

The port of the host that the riak server is on. Can be set via the environment variable DATA_RIAK_HTTP_PORT, and defaults to 8098.

timeout

The maximum value (in seconds) that a request can go before timing out. Can be set via the environment variable DATA_RIAK_HTTP_TIMEOUT, and defaults to 15.

user_agent

This is the instance of LWP::UserAgent we use to talk to Riak.

METHOD =head2 base_uri ^

The base URI for the Riak server.

ping

Tests to see if the specified Riak server is answering. Returns 0 for no, 1 for yes.

send ($request)

Send a Data::Riak::Fast::HTTP::Request to the server. If you pass in a hashref, it will create the Request object for you on the fly.

syntax highlighting: