R/dummyTestPage.R

Defines functions .dummyTestPage

.dummyTestPage=function(req) {
  wsUrl = paste(sep='',
                '"',
                "ws://",
                ifelse(is.null(req$HTTP_HOST), req$SERVER_NAME, req$HTTP_HOST),
                '"')
  
  list(
    status = 200L,
    headers = list(
      'Content-Type' = 'text/html'
    ),
    body = paste(
      sep = "\r\n",
      "<!DOCTYPE html>",
      "<html>",
      "<head>",
      "<title>EpivizServer Test Page</title>",
      '<style type="text/css">',
      'body { font-family: Helvetica; }',
      'pre { margin: 0 }',
      '</style>',
      "</head>",
      "<body>",
      '<h3>Test Page</h3>',
      "</body>",
      "</html>"
    )
  )
}

Try the epivizrServer package in your browser

Any scripts or data that you put into this service are public.

epivizrServer documentation built on Nov. 8, 2020, 11 p.m.