Skip to content

Commit

Permalink
news, doc
Browse files Browse the repository at this point in the history
  • Loading branch information
meztez committed Nov 28, 2023
1 parent f9c5a2e commit 5f4b3f1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# plumber (development version)

* Allow to set plumber options using environment variables `?options_plumber`. (@meztez #934)
* Allow to set plumber options using environment variables `?plumber::options`
via the `options` package. (@meztez #936)
* Add support for quoted boundary for multipart request parsing. (@meztez #924)
* Fix #916, related to `parseUTF8` return value attribute `srcfile` on Windows. (#930)

Expand Down
31 changes: 15 additions & 16 deletions R/options_plumber.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ NULL

#' Plumber options
#'
#' There are a number of global options that change behaviors. These can be set globally with
#' Options that change behaviors can be set globally with
#' \code{\link[base:options]{options}}, \code{\link[plumber:options_plumber]{options_plumber}}
#' or with environment variables.
#'
Expand All @@ -148,22 +148,21 @@ NULL
#' @keywords internal
#' @rdname options
options_plumber <- function(
...,
port = getOption("plumber.port"),
docs = getOption("plumber.docs"),
docs.callback = getOption("plumber.docs.callback"),
trailingSlash = getOption("plumber.trailingSlash"),
methodNotAllowed = getOption("plumber.methodNotAllowed"),
apiURL = getOption("plumber.apiURL"),
apiScheme = getOption("plumber.apiScheme"),
apiHost = getOption("plumber.apiHost"),
apiPort = getOption("plumber.apiPort"),
apiPath = getOption("plumber.apiPath"),
maxRequestSize = getOption("plumber.maxRequestSize"),
sharedSecret = getOption("plumber.sharedSecret"),
legacyRedirects = getOption("plumber.legacyRedirects")
...,
port = getOption("plumber.port"),
docs = getOption("plumber.docs"),
docs.callback = getOption("plumber.docs.callback"),
trailingSlash = getOption("plumber.trailingSlash"),
methodNotAllowed = getOption("plumber.methodNotAllowed"),
apiURL = getOption("plumber.apiURL"),
apiScheme = getOption("plumber.apiScheme"),
apiHost = getOption("plumber.apiHost"),
apiPort = getOption("plumber.apiPort"),
apiPath = getOption("plumber.apiPath"),
maxRequestSize = getOption("plumber.maxRequestSize"),
sharedSecret = getOption("plumber.sharedSecret"),
legacyRedirects = getOption("plumber.legacyRedirects")
) {

ellipsis::check_dots_empty()

# Make sure all fallback options are disabled
Expand Down
2 changes: 1 addition & 1 deletion man/options.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5f4b3f1

Please sign in to comment.