Recent Releases of servr
servr - servr 0.31
- A fallback
favicon.icowill be provided if it does not exist when serving files (thanks, @MMJansen, rstudio/pagedown#329).
- R
Published by yihui over 1 year ago
servr - servr 0.30
- Fixed a bug that caused WebSockets to fail when the URL contains a hash.
- R
Published by yihui almost 2 years ago
servr - servr 0.29
Added a function
httr()to run R scripts and show output as HTML pages when serving a directory.Added a new argument
responsetohttd()to post-process the response.
- R
Published by yihui about 2 years ago
servr - servr 0.28
- Added support for HTTP authentication (thanks, @statquant, #63). For all server functions in this package, you can use the
authargument to provide the authentication scheme and credentials. See the help page?servr::server_configfor more info.
- R
Published by yihui about 2 years ago
servr - servr 0.27
Fixed an issue with
vign()that when an error occurs in the vignette,vign()wouldn't stop rebuilding the vignette.Fixed a character encoding issue #62 (thanks, @eternal-flame-AD).
- R
Published by yihui almost 3 years ago
servr - servr 0.26
vign()also watches for changes in js/css files now.Stop using the
encodingargument ofknitr::knit()andrmarkdown::render().Removed the experimental function
notebook()from several years ago.
- R
Published by yihui almost 3 years ago
servr - servr 0.25
Added a function
create_server()to create a server with a custom HTTP request handler and optionally a WebSocket handler.Added a function
redirect()to return a redirect response.Added a new argument
excludetorandom_port()to exclude certain port numbers when generating a random available port.The
baseurlargument works for all server functions now, such ashttd().
- R
Published by yihui over 3 years ago
servr - servr 0.24
- When searching for an available random port via
servr::random_port()on the host127.0.0.1, the availability of the port is also tested on0.0.0.0by default. This is to avoid the situation where a port has been used on0.0.0.0but httpuv still thinks it is available on127.0.0.1. If you want to skip this additional testing, you may setoptions(servr.test.0.0.0.0 = FALSE).
- R
Published by yihui over 4 years ago
servr - servr 0.23
- Updated the list of ports considered unsafe by Chrome (thanks, @RLesur, #56).
- R
Published by yihui over 4 years ago
servr - servr 0.22
- When the global option
options(servr.test.0.0.0.0 = TRUE),random_port()tests the availability of a port at the host address0.0.0.0when the requested host address is127.0.0.1.
- R
Published by yihui almost 5 years ago
servr - servr 0.21
Added a new argument
hosturltoserver_config().Added a new argument
filtertohttw()to allow users to filter file paths on the watch list (thanks, @ARawles, #51).
- R
Published by yihui about 5 years ago
servr - servr 0.20
server_config()will add a leading/tobaseurlif it has not already been included.
- R
Published by yihui over 5 years ago
servr - servr 0.19
server_config()also returns thedaemonvalue in the list.
- R
Published by yihui over 5 years ago
servr - servr 0.18
Fixed the malformed Accept-Ranges header (thanks, @JasonPunyon, #47).
servr::random_port()looks for an available port quietly viahttpuv::startServer(quiet = TRUE). This requires httpuv >= v1.5.2.
- R
Published by yihui over 5 years ago
servr - servr 0.17
- Added an argument
opentoservr::browse_last()so users can decide whether to reopen the lastly browsed page.
- R
Published by yihui over 5 years ago
servr - servr 0.16
- Refinements to HTTP range request responses. Open-ended range requests (including "Range: bytes=0-") should now be correctly handled (thanks, @raymondben, #41).
- R
Published by yihui almost 6 years ago
servr - servr 0.15
BUG FIXES
- When the environment variable
R_SERVR_PORTis set,server_config()may issue a superfluous warning "createTcpServer: address already in use" due to an unnecessary call torandom_port()(thanks, @itcarroll, #39).
- R
Published by yihui over 6 years ago
servr - servr 0.14
NEW FEATURES
- The argument
hostinserver_config()can be configured through the global optionservr.hostnow, e.g.,options(servr.host = '0.0.0.0'). This was inspired by https://yihui.name/en/2018/09/localhost-0-0-0-0/#comment-4480809238.
- R
Published by yihui over 6 years ago
servr - servr 0.13
NEW FEATURES
Added a
verboseargument toserver_config().The
intervalargument ofserver_config()can be set via the global optionservr.intervalnow. For example,options(servr.interval = 0.5).
MAJOR CHANGES
- Server functions such as
httd()now return the config object created byserver_config()instead of the server handle returned byhttpuv::startServer(). The config object contains various information about the server and methods to start/stop the server.
- R
Published by yihui almost 7 years ago
servr - servr 0.12
NEW FEATURES
- Exported the function
random_port()to return an available random TCP port.
MAJOR CHANGES
daemon_list()returns server IDs instead of handles, so that it will work with httpuv >= v1.4.5.1 (rstudio/blogdown#365).
- R
Published by yihui about 7 years ago
servr - servr 0.11
NEW FEATURES
- The default value of the
portargument ofserver_config()can be set via the environment variableR_SERVR_PORT. If the environment variable does not exist, the global optionservr.portwill be used if set, e.g.,options(servr.port = 4322). See?servr::server_configfor details.
- R
Published by yihui over 7 years ago
servr - servr 0.10
NEW FEATURES
- Added a function
browse_last()to reopen the last browsed page.
MAJOR CHANGES
- The
daemonargument inserver_config()now defaults tointeractive(), i.e., servr starts a daemonized server that does not block your interactive R session by default.
- R
Published by yihui over 7 years ago
servr - CHANGES IN servr VERSION 0.8
NEW FEATURES
- added another implementation of the daemoinzed server based on the later package, since the previous implmentation based on
httpuv::startDaemonizedServer()could crash the R session on Windows (#23)
- R
Published by yihui over 8 years ago
servr - CHANGES IN servr VERSION 0.7
NEW FEATURES
added a new argument
watchtoservr::httw()exported the function
server_config()
BUG FIXES
- files/directories that contain multibyte characters in path names cannot be served correctly (thanks, Hao Peng)
- R
Published by yihui over 8 years ago
servr - CHANGES IN servr VERSION 0.6
NEW FEATURES
on 404 (page not found), 404.html will be displayed if it exists under the root directory
improved the support for HTTP Range requests, e.g. servr can correctly serve MP4 videos now in major browsers including Safari
BUG FIXES
- servr should decode requested paths before reading them (https://github.com/rstudio/blogdown/issues/85)
- R
Published by yihui almost 9 years ago
servr - CHANGES IN servr VERSION 0.4.1
NEW FEATURES
- excluded ports considered unsafe by Chrome http://superuser.com/a/188070 when a random port automatically
BUG FIXES
- fixed a bug in 301 redirection when serving a directory without the trailing slash
- R
Published by yihui about 9 years ago
servr - CHANGES IN servr VERSION 0.5
NEW FEATURES
- added an argument
initpathtoserver_config()so you can open a specific path initially in the web browser - the
daemonargument ofserver_config()takes the default value from the global optiongetOption('servr.daemon')now, e.g., you can setoptions(servr.daemon = TRUE)so that the daemonized server is always used
- R
Published by yihui about 9 years ago
servr - CHANGES IN servr VERSION 0.4
NEW FEATURES
- you can disable websocket listening on an HTML page using a special HTML comment
<!-- DISABLE-SERVR-WEBSOCKET -->when servr is serving and watching a directory, so that this page will not communicate with R (e.g. when it is updated, R will not send signals to refresh it) (thanks @hafen, #25) - a random TCP port will be used if the port 4321 is not available
- R
Published by yihui almost 10 years ago
servr - CHANGES IN servr VERSION 0.1
NEW FEATURES
- the main function
httd()to start an HTTP server for a local directory
- R
Published by yihui almost 10 years ago
servr - CHANGES IN servr VERSION 0.2
NEW FEATURES
- when running inside RStudio, the RStudio web browser will be used if available (requires RStudio >= 0.98.439)
- added three server functions jekyll(), rmdv1(), and rmdv2() to serve Jekyll websites, R Markdown v1, and R Markdown v2 documents, respectively
- added a server function vign() to serve R Markdown/HTML package vignettes
- added a server function make() to serve a directory and update files automatically via Makefile (#2)
- the URL pathname foo will be redirected to foo/ automatically if foo is a directory (#5)
- in case of errors when serving dynamic documents, the server functions will double the delay to check for updates and wait for the next build until the error is cleared (like Gmail)
- R
Published by yihui almost 10 years ago
servr - CHANGES IN servr VERSION 0.3
NEW FEATURES
- added a function
httw()to watch for changes under a directory and refresh an HTML page automatically (if it is being viewed in the browser) when any files are modified - servr accepts HTTP Range requests now (thanks, @rekado, #21)
BUG FIXES
- servr did not work with RStudio Server (#20)
- R
Published by yihui almost 10 years ago