Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

net-http-cheat-sheet

> 编程语言
Open source

A collection of Ruby Net::HTTP examples.

1.1K stars0 likes1 views
WebsiteGitHub

About

A collection of Ruby Net::HTTP examples.

Ruby Net::HTTP cheat sheet

A bunch of examples of various use cases, implemented with Ruby's Net::HTTP library.

Alternatives to Net::HTTP

This cheat sheet was created many years ago, when invoking Net::HTTP directly was common. These days, there are better alternatives around, with much nicer APIs.

Compare multipart file uploads with Net::HTTP:

ruby
BOUNDARY = "AaB03x"

uri = URI.parse("http://something.com/uploads")
file = "/path/to/your/testfile.txt"

post_body = []
post_body  File.new("/path/to/image.jpg", 'rb')

Check out RestClient! https://github.com/rest-client/rest-client

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Ruby

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言