softwaremill / sttp

The Scala HTTP client you always wanted!
https://sttp.softwaremill.com
Apache License 2.0
1.44k stars 301 forks source link

`:status` header on responses for simpleHttpClient #1670

Open francisdb opened 1 year ago

francisdb commented 1 year ago
//> 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.

adamw commented 1 year ago

It seems these are HTTP/2 pseudo-headers. Indeed, we might want to filter :status out