From: "k0kubun (Takashi Kokubun) via ruby-core" Date: 2023-12-21T17:18:03+00:00 Subject: [ruby-core:115840] [Ruby master Bug#20077] modern http client Issue #20077 has been updated by k0kubun (Takashi Kokubun). For GET and POST, modern Ruby does have APIs that aren't hard to use. I wonder if you have used them. * `Net::HTTP.get(uri, headers = {})`: Ruby 3.0+ https://bugs.ruby-lang.org/issues/16686 * `Net::HTTP.post(uri, body, headers = {})`: Ruby 2.4+ https://bugs.ruby-lang.org/issues/12375 ---------------------------------------- Bug #20077: modern http client https://bugs.ruby-lang.org/issues/20077#change-105796 * 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/