Skip to content

Commit

Permalink
document and check for "query" request matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronwolen authored and sckott committed Feb 5, 2020
1 parent 9b1e346 commit a95d483
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/use_cassette.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#' @param match_requests_on List of request matchers
#' to use to determine what recorded HTTP interaction to replay. Defaults to
#' `["method", "uri"]`. The built-in matchers are "method", "uri", "host",
#' "path", "headers" and "body"
#' "path", "headers", "body" and "query"
#' @param update_content_length_header (logical) Whether or
#' not to overwrite the `Content-Length` header of the responses to
#' match the length of the response body. Default: `FALSE`
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ check_cassette_name <- function(x) {
}

check_request_matchers <- function(x) {
mro <- c("method", "uri", "headers", "host", "path", "body")
mro <- c("method", "uri", "headers", "host", "path", "body", "query")
if (!all(x %in% mro)) {
stop("1 or more 'match_requests_on' values (",
paste0(x, collapse = ", "),
Expand Down
2 changes: 1 addition & 1 deletion man/insert_cassette.Rd

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

2 changes: 1 addition & 1 deletion man/use_cassette.Rd

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

0 comments on commit a95d483

Please sign in to comment.