Stubbing and Setting Expectations on 'HTTP' Requests
Build a httr2 response (httr2_response
)
Enable or disable webmockr
Mocking writing to disk
Pipe operator
Extract the body from an HTTP request
Remove a request stub
Adapters for Modifying HTTP Requests
BodyPattern
Build a crul request
Build a crul response
Build a httr request
Build a httr response
Build an httr2 request
HashCounter
HeadersPattern
HttpLibAdapaterRegistry
Turn on httr
mocking
Turn on httr2
mocking
MethodPattern
Mock file
List stubs in the stub registry
List or clear requests in the request registry
RequestPattern class
RequestRegistry
RequestSignature
Response
stub_registry_clear
Stub an http request
StubbedRequest
StubCounter
StubRegistry
Set raise error condition
This function is defunct.
Expectation for what's returned from a stubbed request
Set timeout as an expected return on a match
UriPattern
webmockr configuration
execute a curl request
This function is defunct.
This function is defunct.
webmockr_reset
Defunct functions in webmockr
webmockr: Stubbing and Setting Expectations on 'HTTP' Requests
This function is defunct.
Set additional parts of a stubbed request
Stubbing and setting expectations on 'HTTP' requests. Includes tools for stubbing 'HTTP' requests, including expected request conditions and response conditions. Match on 'HTTP' method, query parameters, request body, headers and more. Can be used for unit tests or outside of a testing context.
Useful links