All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy