storr_server: Run a storr server

Description Usage Arguments Details

Description

Create a storr server, powered by HTTP.

Usage

1
2
storr_server(st, host = "0.0.0.0", port = 8888, verbose = TRUE,
  loop = TRUE)

Arguments

st

A storr object to serve. The storr can be empty to start (e.g., a new call to storr::storr_environment()

host

A string that is a valid IPv4 address, or "0.0.0.0" to listen on all IP addresses (which is the default)

port

Port number to listened on.

verbose

Print information about

loop

Run the server in a loop (using httpuv::runServer). If FALSE, you will have to handle requests yourself with httpuv::service.

Details

This is not fast; expect throughput on the order of 100-200 requests per second.

The API is not currently documented, though it will be once I'm sure I've got this right.


richfitz/storr.server documentation built on May 27, 2019, 8:42 a.m.