run_server: Minimal function for opening a socket and...

Description Usage Arguments

View source: R/microserver.r

Description

Minimal function for opening a socket and accepting/responding to requests.

Usage

1
run_server(routes, port = 8103, http_basic_auth = NULL)

Arguments

routes

list. A named list of routes.

port

integer. The default is 8103.

http_basic_auth

list. A list of HTTP basic authentication requirements. If not NULL (the default), should contain a token and routes key.


dvanderbeek/microserver-test documentation built on May 21, 2019, 8:37 a.m.