http
ReQL command: http
Command syntax
r.http(url[, options]) → value r.http(url[, options]) → stream
Description
Retrieve data from the specified URL over HTTP. The return type depends on the result_format
option, which checks the Content-Type
of the response by default.
Example: Perform an HTTP GET
and store the result in a table.
r.table('posts').insert(r.http('http://httpbin.org/get')).run(conn)
See the tutorial on r.http
for more examples on how to use this command.