com.outtherelabs.braveplay.http.PlayClientRequest.scala Maven / Gradle / Ivy
The newest version!
package com.outtherelabs.braveplay.http
import com.github.kristofa.brave.http.HttpClientRequest
import java.net.URI
import play.api.libs.ws.WSRequest
class PlayClientRequest(var request: WSRequest) extends HttpClientRequest {
override def addHeader(header: String, value: String): Unit = request = request.withHeaders(header -> value)
override def getHttpMethod: String = request.method
override def getUri: URI = request.uri
}