StubCounter | R Documentation |
hash with counter to store requests and count number of requests made against the stub
hash
(list) a list for internal use only, with elements
key
, sig
, and count
put()
Register a request by it's key
StubCounter$put(x)
x
an object of class RequestSignature
nothing returned; registers request & iterates internal counter
count()
Get the count of number of times any matching request has been made against this stub
StubCounter$count()
clone()
The objects of this class are cloneable with this method.
StubCounter$clone(deep = FALSE)
deep
Whether to make a deep clone.
x <- StubCounter$new() x x$hash x$count() z <- RequestSignature$new(method = "get", uri = "https:/httpbin.org/get") x$put(z) x$count() x$put(z) x$count()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.