---
title: "http_gun 0.4.0 Breaking Changes on Hex | Since.dev"
description: "What each http_gun release removed, renamed or changed: 16 breaking changes in 2 versions on Hex, each with its source."
canonical_url: https://since.dev/packages/hex/http_gun
last_updated: 2026-12-04
---

# http_gun breaking changes

http_gun 0.4.0 (November 26, 2026) is its newest release with breaking changes, 12 of them. The first: Removed config.RequestTimeout. Every breaking API change we have recorded in http_gun on Hex: 16 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.4.1`, released December 3, 2026. Apache-2.0 license. [Source repository](https://github.com/gleam-dream/http%5Fgun)

- From [0.2.0](#v-0-2-0) to [0.4.0](#v-0-4-0): 12 breaking changes in 1 version.

## http_gun 0.4.0 breaking changes

http_gun 0.4.0, released November 26, 2026: 12 breaking changes.

- **Removed** `config.RequestTimeout`  

The RequestTimeout setting is gone; set the timeout on the client handle with http_gun.with_timeout. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.4.0/CHANGELOG.md)
- **Removed** `config.with_request_timeout`  

Set the request timeout on the client handle with http_gun.with_timeout instead of in the configuration. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.4.0/CHANGELOG.md)
- **Behavior changed**  

Response, informational and trailer header names and values that are not UTF-8 are read as ISO-8859-1 rather than passed on as raw bytes. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.4.0/CHANGELOG.md)
- **Behavior changed**  

Gun's closing timer is off, so a streamed response after connection close or GOAWAY is no longer cut at 15 seconds. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.4.0/CHANGELOG.md)
- **Behavior changed**  

A request Gun refuses on a closing connection fails with RequestFailed(PeerDraining) and NotSent, so retry code matching MaybeSent must change. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.4.0/CHANGELOG.md)
- **Behavior changed** `body.next_within`  

next_within now returns within its wait plus the grace even when the body owner cannot answer, and a read from the owning process replaces an abandoned read. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.4.0/CHANGELOG.md)
- **Behavior changed** `config.with_idle_timeout`  

Streamed responses are no longer cut 15 seconds after connection close; set the bound with with_timeout or with_idle_timeout. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/main/docs/MIGRATION.md)
- **Behavior changed** `http_gun.batch`  

When the client does not report its byte limit before the deadline, batch runs no request and every position fails with DeadlineExceeded and NotSent. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.4.0/CHANGELOG.md)
- **Behavior changed** `http_gun.with_timeout`  

Every request now has a finite deadline, default 30 seconds, and returns DeadlineExceeded with MaybeSent after the deadline plus 500 ms. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.4.0/CHANGELOG.md)
- **Behavior changed** `testing.verify`  

A client that does not answer before the deadline now yields NotAnswered instead of ClientStopped. [github.com](https://github.com/gleam-dream/http%5Fgun/commit/6dbb1753004d8ecd91dc6d1254eff91e24928a4f)
- **Behavior changed** `testing.VerifyError`  

Add the NotAnswered variant to every case over VerifyError; ClientStopped is returned only for a stopped client. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.4.0/CHANGELOG.md)
- **Signature changed** `http_gun.with_timeout`  

Pass a gleam/time/duration.Duration to http_gun.with_timeout; config.Infinity no longer lifts the request bound. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.4.0/CHANGELOG.md)

## http_gun 0.2.0 breaking changes

http_gun 0.2.0, released November 19, 2026: 4 breaking changes.

- **Removed**  

Convert existing cassettes on commit 0974868199378dd774e5979bff8f503cf645fd4c before upgrading, because this release only reads schema 3. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.2.0/CHANGELOG.md)
- **Behavior changed**  

A recording that fit its budget under schema 2 can now exceed it, since the envelope and separators are charged too. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.2.0/CHANGELOG.md)
- **Behavior changed** `cassette.encode`  

Apply cassette.redact with redaction.default() before encoding hand-built or parsed scripts, since encode now keeps credentials as given. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.2.0/CHANGELOG.md)
- **Behavior changed** `cassette.record`  

A recording budget below 42 bytes is refused at once with CaptureLimit instead of at the first request. [github.com](https://github.com/gleam-dream/http%5Fgun/blob/v0.2.0/CHANGELOG.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.
