Methods
Method new()
Create a new BodyPattern
object
Arguments
pattern
(list) a body object - from a request stub (i.e.,
the mock)
Returns
A new BodyPattern
object
Match a request body pattern against a pattern
Usage
BodyPattern$matches(body, content_type = "")
Arguments
body
(list) the body, i.e., from the HTTP request
content_type
(character) content type
Method to_s()
Print pattern for easy human consumption
Method clone()
The objects of this class are cloneable with this method.
Usage
BodyPattern$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.