getCookieValueFromHeader

fun getCookieValueFromHeader(name: String?, cookieHeader: String?): String?

Parses the given cookie header and returns the value of the cookie with the given name.

Return

The cookie value when found, null otherwise.

Parameters

name

The name of the cookie to get the value for.

cookieHeader

The header that is parsed for cookies.