sttp
sttp copied to clipboard
`:status` header on responses for simpleHttpClient
//> using lib "com.softwaremill.sttp.client3::core::3.8.5"
val resp = simpleHttpClient.send(quickRequest.get(uri"https://www.google.com"))
resp.headers.foreach(println)
outputs
server: gws
...
:status: 200
...
Is it expected to see this extra :status header in the response headers?
Have not tested any other Sttp clients.
It seems these are HTTP/2 pseudo-headers. Indeed, we might want to filter :status out