---
title: "rest-client 2.0.0 Breaking Changes on RubyGems | Since.dev"
description: "What each rest-client release removed, renamed or changed: 21 breaking changes in 1 version on RubyGems, each with its source."
canonical_url: https://since.dev/packages/gem/rest-client
last_updated: 2026-12-04
---

# rest-client breaking changes

rest-client 2.0.0 (July 2, 2016) is its newest release with breaking changes, 21 of them. The first: rest-client 2.0.0 drops support for Ruby 1.9. Every breaking API change we have recorded in rest-client on RubyGems: 21 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.1.0`. [Source repository](https://github.com/rest-client/rest-client)

Its 2.0.0 release drops Ruby 1.9. [Ruby end of life dates](https://since.dev/calendar/ruby.md).

## rest-client 2.0.0 breaking changes

rest-client 2.0.0, released July 2, 2016: 21 breaking changes.

- **Removed**  

Code that runs on Ruby 1.9 must move to a newer Ruby before using rest-client 2.0. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Removed** `RestClient.MaxRedirectsReached`  

Redirect-limit errors now use the normal ExceptionWithResponse subclasses, with the response on .response. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Removed** `RestClient.Response`  

Request arguments are read from the request object instead of a hash passed to the response. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Renamed** `:timeout`  

Use :read_timeout instead; passing :timeout now sets both :read_timeout and :open_timeout. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed**  

URIs that already have a scheme are no longer altered. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed**  

Multiple headers with the same name are combined with a comma space, except Set-Cookie. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed**  

Deeply nested arrays and hashes, and null or empty values, are encoded with a new convention. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed**  

An explicit Authorization header now prevents the basic auth header from being set. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed**  

Payloads that respond to read are streamed instead of converted with to_s. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed** `:cookies`  

The :cookies option is handled through cookie jars; passing it to Request#initialize now raises ArgumentError. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed** `Request.transmit`  

Calling Request#transmit from outside the class is no longer supported. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed** `Response.body`  

It now returns a plain String rather than the response object itself. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed** `Response.to_i`  

It no longer returns the HTTP status code; use response.code instead. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed** `Response.to_s`  

It now returns a plain String rather than the response object itself. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed** `RestClient.ExceptionWithResponse`  

HTTP 304, 401 and 404 exceptions now also inherit from RestClient::RequestFailed. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed** `RestClient.Payload.Base.inspect`  

Payload objects no longer present themselves as a String when inspected. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed** `RestClient.RequestTimeout`  

Network timeouts now raise ReadTimeout or OpenTimeout; rescue RestClient::Exceptions::Timeout to catch both. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Behavior changed** `RestClient.Response`  

Responses that declare a charset now return a String in that encoding instead of the Net::HTTP default. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Default changed**  

Connections no longer offer RC4-MD5 by default. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Default changed**  

Requests now send Accept: \*/\* by default instead of the previous default. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)
- **Default changed**  

The default User-Agent header is now more descriptive. [github.com](https://github.com/rest-client/rest-client/blob/v2.0.0/history.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
