igrigorik / em-http-request

Asynchronous HTTP Client (EventMachine + Ruby)
1.22k stars 220 forks source link

Support requests with "Expect: 100-continue" #321

Closed CodeMonkeySteve closed 6 years ago

CodeMonkeySteve commented 6 years ago

I'm trying to port a rubygem that uses net-http to em-http, but it uses an "Expect: 100-continue" header to delay sending the request body until after the server has accepted the headers. Currently, em-http ignores the "100 Continue" response. For parity with net-http, it should check for the Expect header and not send the request body until it's received the "100 Continue" response.