http-client icon indicating copy to clipboard operation
http-client copied to clipboard

Export `statusCode`

Open luntain opened this issue 4 years ago • 1 comments

It is common to need statusCode in the code making use of this library, therefore it would be convenient to make it available together with responseStatus function. Otherwise one needs to import it from Network.HTTP.Types.Status and add http-types package to the cabal project, not to mention identifying those details in the documentation, which is rather tedious.

luntain avatar Jul 24 '21 20:07 luntain

I'm open to a PR with these changes.

snoyberg avatar Jul 25 '21 11:07 snoyberg