NAME

ArangoDB::Connection - A connection to a ArangoDB server.

DESCRIPTION

The ArangoDB::Connection class creates a connection to the ArangoDB server.

METHODS

new($options)

Constructor. $options if connection option. It is arguments of ArangoDB::ConnectOptions.

options

Returns instance of ArangoDB::ConnectOptions.

http_get($path)

Send GET HTTP request to $path.

http_post($path,$data)

Send POST HTTP request to $path with $data. $data is encoded to JSON.

http_post_raw($path,$raw_data)

Send POST HTTP request to $path with $raw_data. $raw_data isn't encoded to JSON.

http_put($path,$data)

Send PUT HTTP request to $path with $data. $data is encoded to JSON.

http_delete($path)

Send DELETE HTTP request to $path.

AUTHOR

Hideaki Ohno <hide.o.j55 {at} gmail.com>