module Acme::Client::Util

def decode_link_headers(link_header)

See RFC 8288 - https://tools.ietf.org/html/rfc8288#section-3
def decode_link_headers(link_header)
  link_header.split(',').each_with_object({}) { |entry, hash|
    _, link, name = *entry.match(LINK_MATCH)
    hash[name] ||= []
    hash[name].push(link)
  }
end