sttp icon indicating copy to clipboard operation
sttp copied to clipboard

`:status` header on responses for simpleHttpClient

Open francisdb opened this issue 2 years ago • 1 comments

//> 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.

francisdb avatar Dec 23 '22 14:12 francisdb

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

adamw avatar Dec 23 '22 15:12 adamw