inst/doc/httpcache.R

## -----------------------------------------------------------------------------
library(httpcache)

## ---- results='hide', echo=FALSE, message=FALSE-----------------------------------------------------------------------
options(width=120)

## ---------------------------------------------------------------------------------------------------------------------
system.time(a <- GET("https://httpbin.org/get"))
system.time(b <- GET("https://httpbin.org/get"))

## ---------------------------------------------------------------------------------------------------------------------
identical(a, b)

## ---------------------------------------------------------------------------------------------------------------------
clearCache()
startLog()
a <- GET("http://httpbin.org/get")
b <- GET("http://httpbin.org/get")

## ---------------------------------------------------------------------------------------------------------------------
library(httptest)

Try the httpcache package in your browser

Any scripts or data that you put into this service are public.

httpcache documentation built on Jan. 13, 2021, 7:46 p.m.