# augustl/net-http-cheat-sheet

A collection of Ruby Net::HTTP examples.

Repository: https://github.com/augustl/net-http-cheat-sheet
Canonical: https://ross.abutalabs.com/products/net-http-cheat-sheet
Language: Ruby
License: MIT
License Family: permissive
Last push: 2019-04-03T04:53:58+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 6082, "days_push": 2709, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1147, forks 160 (observed 2026-08-28T04:03:45.898221+00:00)

## What it is
A cheat sheet repository of copy-paste examples for Ruby's built-in Net::HTTP standard library, covering requests, headers, file uploads, and other HTTP tasks. It also points readers to modern alternatives like RestClient, noting the examples date from when Net::HTTP was commonly used directly.

## Use cases
- make an HTTP request in Ruby without gems
- upload multipart files with Net::HTTP
- learn how Ruby's Net::HTTP library works
- find example code for setting HTTP headers in Ruby
- send POST requests with Ruby standard library
- compare Net::HTTP with RestClient

## When to choose
- you must use Ruby's standard library with no external dependencies
- you want to understand what HTTP client gems do under the hood
- you need a quick reference for Net::HTTP syntax

## When to avoid
- you want a pleasant HTTP client API for a real project - use RestClient, HTTParty, or Faraday instead
- you need actively maintained documentation for modern Ruby
- you need async or streaming HTTP features

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: http-client, developer-tools, documentation
- domain: developer-tools, web-development, documentation, tutorials
- platform: ruby
- tags: cheat-sheet, net-http, ruby-standard-library, http-examples

## Member repositories
- augustl/net-http-cheat-sheet (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:45.898221+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:34:01.207762+00:00, confidence not recorded.
  - readme: https://github.com/augustl/net-http-cheat-sheet (fetched 2026-08-28T04:03:45.898221+00:00, sha f0f9cd3003df)
- Data as of 2026-08-30T08:39:29.467469+00:00.
