BodyPattern | R Documentation |
body matcher
pattern
a list
partial
bool, default: FALSE
partial_type
a string, default: NULL
new()
Create a new BodyPattern
object
BodyPattern$new(pattern)
pattern
(list) a body object - from a request stub (i.e., the mock)
A new BodyPattern
object
matches()
Match a request body pattern against a pattern
BodyPattern$matches(body, content_type = "")
body
(list) the body, i.e., from the HTTP request
content_type
(character) content type
a boolean
to_s()
Print pattern for easy human consumption
BodyPattern$to_s()
a string
clone()
The objects of this class are cloneable with this method.
BodyPattern$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.