rspec_api_documentation icon indicating copy to clipboard operation
rspec_api_documentation copied to clipboard

Make HttpTestClient HTTP compatible

Open Ptico opened this issue 5 years ago • 4 comments

HttpTestClient operates via HTTP. So it must send and receive HTTP Headers not CGI Meta-Variables

Ptico avatar Jul 25 '19 13:07 Ptico

Also, I bumped WebMock dependency, because it was too old and fail tests on modern environment

Ptico avatar Jul 25 '19 13:07 Ptico

@oestrich maybe you can help with review this PR?

Jesterovskiy avatar Sep 03 '19 11:09 Jesterovskiy

This works nicely for request headers. Unfortunately, this expects "Content-Type" as a response header, so it doesn't work with other case variations even though Faraday (or some servers) returns lowercase headers.

marnen avatar Aug 16 '21 19:08 marnen

...or maybe that's not the issue after all. Hmm. It's not parsing JSON responses, at any rate.

marnen avatar Aug 16 '21 19:08 marnen