httprb / http

HTTP (The Gem! a.k.a. http.rb) - a fast Ruby HTTP client with a chainable API, streaming support, and timeouts
MIT License
3.01k stars 321 forks source link

Add info response support #593

Closed ixti closed 4 years ago

ixti commented 4 years ago

This patch adds support for 1XX informational responses. Those kinds of responses are sent along with normal responses, and flow looks like:

> GET / HTTP/1.1
> Host: example.com
>

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Content-Length: 12
<
< Hello World!

Notice that server responds (sends to the socket) 2 HTTP responses.


Resolves: #592

ixti commented 4 years ago

/cc @matuszewskijan

matuszewskijan commented 4 years ago

@ixti is it possible to release v5.0.0pre3 version with this patch?

We already need it to support one of our clients API.

ixti commented 4 years ago

Ok. Will do that shortly today.

matuszewskijan commented 4 years ago

@ixti sorry that I bother you again. Any news on the above?

ixti commented 4 years ago

@matuszewskijan sorry, got overwhelmed at work and forgot about this request completely. Thank for a reminder - just cut pre3 release.