Learn R Programming

webmockr (version 0.1.0)

wi_th: Set additional parts of a stubbed request

Description

Set query params, request body, and/or request headers

Usage

wi_th(.data, ...)

wi_th_(.data, ..., .dots)

Arguments

.data
input. Anything that can be coerced to a StubbedRequest class object
...
Comma separated list of variable names, passed on to lazyeval::lazy_dots(). accepts the following: query, body, headers
.dots
Used to work around non-standard evaluation

Value

an object of class StubbedRequest, with print method describing the stub

Details

with is a function in the base package, so we went with wi_th