View source: R/mangoro-utils.R
| mangoro_http_start | R Documentation |
Start an HTTP file server via RPC
mangoro_http_start(
sock,
addr,
dir = ".",
prefix = "/",
cors = FALSE,
coop = FALSE,
tls = FALSE,
cert = NULL,
key = NULL,
silent = FALSE
)
sock |
A nanonext socket connected to the HTTP server controller |
addr |
Address to bind server to (e.g., "127.0.0.1:8080") |
dir |
Directory to serve (default: current directory) |
prefix |
URL prefix for the server (default: "/") |
cors |
Enable CORS headers (default: FALSE) |
coop |
Enable Cross-Origin-Opener-Policy (default: FALSE) |
tls |
Enable TLS (default: FALSE) |
cert |
Path to TLS certificate file (required if tls = TRUE) |
key |
Path to TLS key file (required if tls = TRUE) |
silent |
Suppress server logs (default: FALSE) |
List with status and message
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.