filter

fun filter(links: List<WebLink>, query: List<String>): List<WebLink>(source)

Applies the query filter of RFC 6690 §4.1: each name=value must match an attribute of the link (href matches the target); a value ending in * matches as a prefix, and the values of relation-type attributes match one by one. Queries without = match links that have the attribute.