.ParseLinkHeaders | R Documentation |
Given a list of HTTP response headers parsed by curl::parse_headers_list, return the URLs of all "Link" headers indexed by link name. For example, given these Link headers: <http://www.paradigm4.com/index.html>; rel="P4 Home" <http://www.github.com/Paradigm4>; rel="P4 GitHub Space" The function would return a list like: list( "P4 Home" = "http://www.paradigm4.com/index.html", "P4 GitHub Space" = "http://www.github.com/Paradigm4" )
.ParseLinkHeaders(headers_list)
headers_list |
the result of curl::parse_headers_list() on some HTTP response from a server |
a named list where each name is the link name from "rel" and the value is the URL of the link.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.