Description Usage Arguments Examples
Ping a url, doing a single call, with any http verbs
1 |
url |
A url |
verb |
(character) An http verb, default: |
... |
Any httr verb parameters passed on to those functions |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
"https://mockbin.com/request" %>% ping()
ping("https://mockbin.com/request")
"https://mockbin.com/request" %>% ping(config=verbose())
ping("https://mockbin.com/request", config=verbose())
"https://mockbin.com/request" %>% ping(config=c(verbose(), accept_json()))
"https://mockbin.com/request" %>% ping()
"https://mockbin.com/request" %>% ping(verb=HEAD)
"https://mockbin.com/request" %>% ping(verb=PUT)
"https://google.com" %>% ping()
# pass just a port number, tries to resolve, fails if not found
# "9200" %>% ping()
# 9200 %>% ping()
# 9200 %>% ping(verb=POST)
# 9200 %>% ping(verb=HEAD)
# ping(9200)
# ping("9200")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.