ruby 中是否有一些像 java httpclient 这样的库

发布于 08-08 08:29 字数 46 浏览 4 评论 0原文

我想知道ruby中是否有像java httpclient这样的库? 非常感谢。

i want to know whether there are libraries like java httpclient in ruby?
great thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

陌上青苔2024-08-15 08:29:41

Ruby 附带 Net/HTTP 库开箱即用。我建议首先使用它,如果您需要更高级别的东西,请查看外部库,例如 REST 客户端。

Ruby comes with the Net/HTTP library out of the box. I recommend using that first, and if you need something higher level, look at external libraries like e.g. REST client.

爱已欠费2024-08-15 08:29:41

Net::HTTP 如果你不想要外部依赖,Curb/Curl::Multi 如果您需要原始性能,Patron 如果你想要一个好的中间解决方案,并且 open -uri 如果你需要一些快速而肮脏的东西,永远不会看到生产使用。

赞助人通常是我最喜欢的解决方案。

Net::HTTP if you don't want an external dependency, Curb/Curl::Multi if you need raw performance, Patron if you want a good middle-of-the-road solution, and open-uri if you need something quick and dirty that will never see production usage.

Patron is usually my favored solution.

人│生佛魔见2024-08-15 08:29:41

REST Client 是非常方便且易于使用的库。

REST Client is pretty handy and easy to use library.

留蓝2024-08-15 08:29:41

您尝试过这两种方法吗?

ruby-httpclient
赞助人

Have you tried either of these two?

ruby-httpclient
Patron

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文