gh-42550: Add 'Expect: 100-Continue' support to httplib (#133276)
* Add 'Expect: 100-Continue' support to httplib
Previously, http.client would always send content body immediately and ignore any 100 responses. This change makes HTTPClient.request() wait for a `Continue` response if the `Expect: 100-Continue` header is set, and adds a parameter to HTTPClient.getresponse() that will cause it to return 100 responses instead of eating them.
---------
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
6 files changed