
21 Dec
2023
21 Dec
'23
6:22 p.m.
Issue #20077 has been updated by k0kubun (Takashi Kokubun).
HTTP.get return body as string, other http method return response there is get_print, maybe for scripting.
If you look at what `HTTP.get` does, it's just `HTTP.get_response(...).body`. You may use `HTTP.get_response` for that purpose. ---------------------------------------- Bug #20077: modern http client https://bugs.ruby-lang.org/issues/20077#change-105798 * Author: pynix (Pynix wang) * Status: Feedback * Priority: Normal * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- net/http is very very old and hard to use. we need a well designed http client in stdlib. -- https://bugs.ruby-lang.org/