我正在尝试使用spray-client和spray-httpx,但我无法弄清楚如何将“set-cookie”标头转换HttpResponse
为我想在HttpRequest
val responseSetCookieHeaders = response.headers filter { _.name == "Set-Cookie" }
...
val requestCookieHeader:HttpHeader = ???
...
addHeader(requestCookieHeader) ~> sendReceive ~> { response => ??? }
我确实看到spray.http.HttpHeaders.Cookie
了,但我看不到从实例转换HttpHeader
为HttpCookie
...