jnunemaker/httparty
62.7
Adequate · 14 November 2026
3.3k
lines of production code
Ruby
primary language
7
measurements over time
What this system is
Features
Add configurable HTTP request/response logging with multiple output formats
HTTParty now includes a built-in logging system that allows users to log HTTP requests and responses in various formats. The library provides three built-in formatters: Apache-style combined log format, a curl-like verbose output showing headers and bodies, and a Logstash-compatible JSON format. Users can select a formatter via the \:logger\ option (e.g., \:curl\, \:apache\, or \:logstash\) and configure the log level. The system is extensible, allowing users to register custom formatters using \HTTParty::Logger.add\_formatter\.
lib/httparty/logger · high confidence
Introduce httparty command-line interface
Adds a new executable at bin/httparty that allows users to make HTTP requests directly from the terminal. The tool supports GET, POST, PUT, DELETE, HEAD, and OPTIONS verbs, and lets users specify request bodies, custom headers, and basic authentication. Output can be formatted as plain text, JSON, CSV, or XML, and includes a verbose mode for debugging and a --version flag.
bin · high confidence
New examples directory with comprehensive usage demonstrations
The \examples/\ directory has been added, providing a comprehensive set of Ruby scripts demonstrating how to use the library. These examples cover basic GET and POST requests, custom parsers (including XML with Crack and HTML with Nokogiri), basic authentication, multipart file uploads, streaming body downloads, logging configuration, international domain names (IDNs), and specific integrations for services like Amazon, Google, StackExchange, Twitter, and Microsoft Graph. Also in this area: Replace outdated examples with working basic auth, cookies, and debug output demos; Updated examples to use installed HTTParty and added party\_foul\_mode demo.
examples · high confidence
Standardize development environment with EditorConfig, RuboCop, and Guard
This change introduces configuration files to standardize the coding style and development workflow. An \.editorconfig\ file is added to enforce consistent indentation, line endings, and whitespace trimming across different editors and IDEs. A \.rubocop.yml\ configuration is introduced to define Ruby style rules, while a corresponding \.rubocop\_todo.yml\ file is generated to suppress existing offenses, allowing for incremental code cleanup. Additionally, a \Guardfile\ is added to automate running RSpec tests and Cucumber features on file changes, improving developer feedback loops.
(repo-wide) · high confidence
Removals
Removal of legacy deployment and website generation tasks
The project has removed several Rake tasks previously used for manual release management and website hosting. Specifically, the \deploy\, \local\_deploy\, \check\_version\, \install\_gem\_no\_doc\, and \manifest:refresh\ tasks in \tasks/deployment.rake\ are gone, as are the \ruby\_env\ environment task and the \website\_generate\, \website\_upload\, and \website\ tasks in \tasks/website.rake\. This indicates a shift away from the previous workflow that involved SVN tagging, direct gem installation, and rsync-based uploads to RubyForge, likely aligning with the move to the Echoe build system mentioned in the commit history.
tasks · high confidence
Removed legacy website assets and documentation
The website directory's static content has been removed, including the main documentation file (index.txt), the HTML layout template (template.html.erb), the screen stylesheet (screen.css), and the JavaScript library for rounded corners (rounded\_corners\_lite.inc.js). This eliminates the legacy site structure and its associated styling and interactivity features.
website · high confidence
Behavioural changes
Added release automation and removed legacy scaffolding scripts
The project now includes a new \script/release\ utility that automates the gem build, tagging, and publishing workflow, enforcing that releases originate from the main branch. Concurrently, several legacy scripts generated by the 'newgem' scaffolding tool (\script/console\, \script/generate\, \script/destroy\, and \script/txt2html\) have been removed, streamlining the development environment by eliminating obsolete code generation and documentation conversion tools.
script · high confidence
Extract HTTP response headers into a dedicated module
The HTTP response headers logic has been moved from the main response file into a new, standalone \lib/httparty/response/headers.rb\ file. This change improves code organization by isolating the header handling implementation, which now explicitly includes \Net::HTTPHeader\ and delegates to a hash structure, making the codebase easier to maintain and understand.
lib/httparty/response · high confidence
HTTParty 0.24.2 release with SSRF mitigation and new compression support
This release updates HTTParty to version 0.24.2 and introduces several behavioral changes and security improvements. It adds support for Brotli, LZW, and Zstandard decompression via the new Decompressor class, allowing users to handle these Content-Encoding types automatically. A critical security fix prevents Server-Side Request Forgery (SSRF) by validating that absolute URLs in redirects match the configured base\_uri. The library also now supports the HTTP MOVE, COPY, MKCOL, LOCK, and UNLOCK methods, and allows users to maintain the original HTTP method across redirects. Additionally, it improves digest authentication handling, supports SameSite cookie attributes, and allows custom URI adapters for international domain name support.
lib/httparty · high confidence
HTTParty library restructured and renamed from Web
The library has been renamed from 'Web' to 'HTTParty' and its codebase reorganized into a modular structure under the lib directory. The previous single-file implementation in lib/web.rb has been removed and replaced by lib/httparty.rb, which now serves as the main entry point. This change introduces a more robust feature set including support for HTTP methods like PATCH, HEAD, and OPTIONS, digest authentication, proxy configuration, streaming uploads, and customizable query string normalization, while removing the dependency on ActiveSupport.
lib · high confidence
Refactored multipart form-data handling with streaming support
Multipart request body generation has been refactored into a new \HTTParty::Request::Body\ class that supports streaming large file uploads via \HTTParty::Request::StreamingMultipartBody\ to reduce memory usage. The implementation now properly escapes filenames in the Content-Disposition header, forces binary encoding for file data, and rewinds files after reading. It also replaces the \mime-types\ gem with \mini\_mime\ for content type lookup and adds support for \ActionDispatch::Http::UploadedFile\ objects.
lib/httparty/request · high confidence
Removed legacy Hoe and Newgem build configuration files
The project has removed its legacy build configuration files, specifically \config/hoe.rb\ and \config/requirements.rb\. These files previously managed gem packaging and dependencies using the Hoe and Newgem tools. Their deletion indicates a migration away from these specific Ruby gem development frameworks, likely simplifying the build process or moving to a different gem management strategy.
config · medium confidence
Test coverage
Added SSL and stubbing test helpers; Added test coverage for HTTParty logger formatters; Added test fixtures for various data formats; Added tests for multipart body generation and streaming; Expanded test coverage for HTTParty core components; Migrated test suite to RSpec 3.1 and WebMock; New Cucumber feature specifications for HTTParty capabilities; New Cucumber step definitions for HTTParty testing; Updated SSL test fixtures with longer-lived certificates and larger keys.
Dependencies
Initial dependency manifest and gemspec setup
The project now uses a Gemfile and a formal gemspec to manage dependencies. The gemspec defines runtime requirements for 'csv', 'multi\_xml' (\>= 0.5.2), and 'mini\_mime' (\>= 1.0.0), and sets the minimum Ruby version to 2.7.0. The Gemfile includes development dependencies like 'guard' and test dependencies such as 'rspec' (\~\> 3.4), 'cucumber' (\~\> 2.3), and 'webmock'.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 64 → 63 (-1.3)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 59 → 55 (-3.3)
- Architecture 100 → 100 (+0.0)
- Maturity 56 → 56 (+0.1)
- Readiness 81 → 81 (+0.0)
- Security 83 → 79 (-3.9)
Resolved (5)
- Off-boarding risk: anonymized user #1
- Orphaned file (features/steps/mongrel_helper.rb)
- Orphaned file (features/steps/remote_service_steps.rb)
- Orphaned file (lib/httparty/connection_adapter.rb)
- Orphaned file (lib/httparty/net_digest_auth.rb)
New (2)
- Edited copy of a member (4 corresponding lines) (lib/httparty/request/body.rb)
- Off-boarding risk: anonymized user #1
Changes since last survey
- 73 commits — 70 feature/other, 3 fixes
By area
- (repo) — 28 commits
- lib/httparty — 21 commits
- spec/httparty — 9 commits
- bin/httparty — 3 commits
- docs/README.md — 3 commits
- features/steps — 3 commits
- lib/httparty.rb — 2 commits
- spec/httparty_spec.rb — 2 commits
- (root) — 1 commit
- spec/fixtures — 1 commit
Notable commits
- fix: Fix doc examples that don't do what they say
- fix: Name regression specs after their library behavior
- fix: Name regression specs after their library behavior
- change: Accept callable objects as dynamic header values
- change: Add specs for the class-level logger, timeout and SSL CA settings
- change: Add specs for the lock and unlock class methods
- change: Add specs for the module-level HTTParty request methods
- change: Add the digest auth cookie to the request's cookies with "; "
- change: Address focused review test coverage
- change: Address focused review test coverage
- change: Address focused review test coverage
- change: Address focused review test coverage
- change: Address review coverage and compatibility feedback
- change: Address review coverage and compatibility feedback
- change: Address review coverage and compatibility feedback
- change: Answer a digest challenge with one qop value
- change: Cache false and nil parsed responses
- change: Coerce hash-like multipart bodies before iterating
- change: Delete the unused delicious.xml fixture
- change: Document timeouts and Net::HTTP's retry of idempotent requests
- …and 53 more
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
jnunemaker/httparty was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 72cdb750fa191fd87ae365b183353f79c8ea2413 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-36d4cd83012f.