vertx / io.vertx.ext.web / ParsedHeaderValue / findMatchedBy

findMatchedBy

abstract fun <T : ParsedHeaderValue> findMatchedBy(matchTries: MutableCollection<T>): T

Finds the first ParsedHeaderValue in the list that matches with this header value. Will return an empty Optional if none match. This method is intended for internal usage.

Parameters

matchTries - A list of parsed headers to match from this header value

Return
Optional potentially with the first matched header