httparty is a Ruby gem for HTTP requests with a simple API. It also ships an httparty executable to query web services and pretty-print responses as Ruby, XML, or JSON.
Overview
httparty wraps common HTTP client chores for Ruby applications. It offers a straightforward way to perform web requests and inspect structured responses during development.
The gem requires Ruby 2.7.0 or newer. Examples illustrate typical call patterns, and additional samples live under the examples directory.
Beyond library use, the httparty command-line tool accepts URLs and formatting flags. Defaults pretty-print Ruby objects so you can explore unfamiliar API payloads quickly.
Separate documentation covers deeper API usage. Contribution guidelines cover the expected test and pull-request workflow for maintainers.
Key features
- Ruby HTTP request helpers
- httparty CLI inspector
- Pretty-printed Ruby output
- XML and JSON CLI formats
- Example scripts included
Use cases
- Call REST APIs from Ruby
- Probe endpoints from terminal
- Explore JSON response shapes
- Script quick HTTP checks