body matcher
patterna list
partialbool, default: FALSE
partial_typea 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)deepWhether to make a deep clone.