com.outtherelabs.braveplay.http.PlayServerRequest.scala Maven / Gradle / Ivy
The newest version!
package com.outtherelabs.braveplay.http
import com.github.kristofa.brave.http.HttpServerRequest
import java.net.URI
import play.api.mvc.RequestHeader
class PlayServerRequest(requestHeader: RequestHeader) extends HttpServerRequest {
override def getHttpHeaderValue(headerName: String): String = requestHeader.headers.get(headerName).orNull
override def getHttpMethod: String = requestHeader.method
override def getUri: URI = new URI(requestHeader.uri)
}