I tried to extract the User-agent header from the Request-Header , I tried this:
headerValue(extractUserAgent) { userAgent => } def extractUserAgent: HttpHeader => Option[String] = { case h: `User-Agent` => Some(h.) case x => None }
I am stuck in the string Some(h.) , I thought it could give some String values ββas a User-agent there, but not string values ββinside It.Help please !!
source share