handler: A function that takes the HTTP request and returns a response.
ws_open: A function to be called back when a WebSocket connection is established (see httpuv::startServer()).
Examples
# always return 'Success:' followed by the requested paths = servr::create_server(handler =function(req){ list(status =200L, body = paste("Success:", req$PATH_INFO))})s$url
browseURL(paste0(s$url,"/hello"))browseURL(paste0(s$url,"/world"))s$stop_server()