From: "k0kubun (Takashi Kokubun) via ruby-core" Date: 2023-12-21T18:22:14+00:00 Subject: [ruby-core:115842] [Ruby master Bug#20077] modern http client 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/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/