Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

webmockr (version 0.1.0)

RequestRegistry: Request registry

Description

Request registry

Arguments

Details

Methods
register_request(request)
Register a request - request: a character string of the request, serialized from CrulAdapter or other adapter
reset()
Reset the registry to no registered requests

Examples

Run this code
x <- RequestRegistry$new()
x$register_request(request = "GET http://scottchamberlain.info")
x$register_request(request = "GET http://scottchamberlain.info")
x$register_request(request = "POST https://httpbin.org/post")
# print method to list requests
x

# hashes, and number of times each requested
x$request_signatures$hash

# reset the request registry
x$reset()

Run the code above in your browser using DataLab