Learn R Programming

webmockr (version 0.1.0)

BodyPattern: BodyPattern

Description

BodyPattern

Arguments

pattern
(list) a body object

Details

Methods
matches(body, content_type = "")
Match a body object against that given in pattern - body (list) the body - content_type (character) content type

Examples

Run this code
z <- BodyPattern$new(pattern = list(a = "foobar"))
z$pattern

Run the code above in your browser using DataLab