parse

Parses a link-format document the application supplies; a document from a peer, such as a /.well-known/core response, goes through parseOrNull. Whitespace between links and parameters is tolerated, as RFC 6690 §2 converts HTTP Link headers by removing it.

Throws

when text is not link format.