-
- All Implemented Interfaces:
-
io.github.oshai.kotlinlogging.KLoggable
public class HeaderMatcher extends KLogging
-
-
Field Summary
Fields Modifier and Type Field Description private final KLoggerloggerpublic final static HeaderMatcherINSTANCE
-
Method Summary
Modifier and Type Method Description final HeaderMismatchmatchHeaderWithParameters(String headerKey, String expected, String actual)final static Map<String, String>parseParameters(List<String> values)final StringstripWhiteSpaceAfterCommas(String str)final static HeaderMismatchcompareHeader(String headerKey, String expected, String actual, MatchingContext context)Compares the expected header value to the actual, delegating to any matching rules if present -
-
Method Detail
-
matchHeaderWithParameters
final HeaderMismatch matchHeaderWithParameters(String headerKey, String expected, String actual)
-
stripWhiteSpaceAfterCommas
final String stripWhiteSpaceAfterCommas(String str)
-
compareHeader
final static HeaderMismatch compareHeader(String headerKey, String expected, String actual, MatchingContext context)
Compares the expected header value to the actual, delegating to any matching rules if present
-
-
-
-