-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing httpbin methods #3
Comments
I use |
@juliasilge can you please try if it works for you now? |
The regular library(webfakes)
httpbin <- local_app_process(httpbin_app())
url1 <- httpbin$url("/cache/60")
resp1 <- httr::GET(url1)
httr::cache_info(resp1)
#> <cache_info> http://127.0.0.1:52399/cache/60
#> Cacheable: TRUE
#> Error in http_date(x$expires): inherits(x, "POSIXt") is not TRUE
url2 <- "https://httpbin.org/cache/60"
resp2 <- httr::GET(url2)
httr::cache_info(resp2)
#> <cache_info> https://httpbin.org/cache/60
#> Cacheable: TRUE
#> Expires: Tue, 09 May 2023 16:37:26 GMT
#> Last-Modified:
#> Etag: Created on 2023-05-09 with reprex v2.0.2 |
Right! Should be good now. Thanks for checking! |
Is it possible something has gone awry with timezones? library(webfakes)
httpbin <- local_app_process(httpbin_app())
url1 <- httpbin$url("/cache/60")
resp1 <- httr::GET(url1)
cache1 <- httr::cache_info(resp1)
cache1$expires
#> [1] "2023-05-09 11:51:04 GMT"
url2 <- "https://httpbin.org/cache/60"
resp2 <- httr::GET(url2)
cache2 <- httr::cache_info(resp2)
cache2$expires
#> [1] "2023-05-09 17:51:06 GMT" Created on 2023-05-09 with reprex v2.0.2 When I ran this, 11:50 or so was my local time in US Mountain Time, not GMT. |
Ah, yes. Hopefully it is good now. |
This works great now, and the pins CI is so much less painful! Thank you so much! 🙌 |
/digest-auth
/hidden-basic-auth
/cache
/cache/{value}
/etag
/response-headers
/brotli
/deflate
/drip
/links/{n}{offset}
/range/{numbytes}
/stream-bytes/{n}
/stream/{n}
/cookies
/cookies/delete
/cookies/set
/cookies/set/{name}/{value}
The text was updated successfully, but these errors were encountered: