dot-ParseLinkHeaders: Given a list of HTTP response headers parsed by...

.ParseLinkHeadersR 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" )

Description

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" )

Usage

.ParseLinkHeaders(headers_list)

Arguments

headers_list

the result of curl::parse_headers_list() on some HTTP response from a server

Value

a named list where each name is the link name from "rel" and the value is the URL of the link.


Paradigm4/SciDBR documentation built on Nov. 9, 2023, 4:58 a.m.