---
title: "com.squareup.okhttp3:mockwebserver 5.0.0 Breaking Changes"
description: "What each com.squareup.okhttp3:mockwebserver release removed, renamed or changed: 10 breaking changes in 2 versions on Maven Central, each with its source."
canonical_url: https://since.dev/packages/maven/com.squareup.okhttp3:mockwebserver
last_updated: 2026-12-04
---

# com.squareup.okhttp3:mockwebserver breaking changes

com.squareup.okhttp3:mockwebserver 5.0.0 (July 3, 2025) is its newest release with breaking changes, 8 of them. The first: Removed okhttp3.mockwebserver.MockResponse.addInformationalResponse. Every breaking API change we have recorded in com.squareup.okhttp3:mockwebserver on Maven Central: 10 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 `5.5.1`, released October 22, 2026. 

Packages on Maven Central run on Java. [Java end of life dates](https://since.dev/calendar/eclipse-temurin.md).

- From [4.0.0](#v-4-0-0) to [5.0.0](#v-5-0-0): 8 breaking changes in 1 version.

## com.squareup.okhttp3:mockwebserver 5.0.0 breaking changes

com.squareup.okhttp3:mockwebserver 5.0.0, released July 3, 2025: 8 breaking changes.

- **Removed** `okhttp3.mockwebserver.MockResponse.addInformationalResponse`  

MockResponse.addInformationalResponse was removed in com.squareup.okhttp3:mockwebserver 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.squareup.okhttp3/mockwebserver/5.0.0)
- **Removed** `okhttp3.mockwebserver.MockResponse.getDuplexResponseBody`  

MockResponse.getDuplexResponseBody was removed in com.squareup.okhttp3:mockwebserver 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.squareup.okhttp3/mockwebserver/5.0.0)
- **Removed** `okhttp3.mockwebserver.MockResponse.isDuplex`  

MockResponse.isDuplex was removed in com.squareup.okhttp3:mockwebserver 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.squareup.okhttp3/mockwebserver/5.0.0)
- **Removed** `okhttp3.mockwebserver.MockWebServer.SocketHandler`  

okhttp3.mockwebserver.MockWebServer.SocketHandler was removed in com.squareup.okhttp3:mockwebserver 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.squareup.okhttp3/mockwebserver/5.0.0)
- **Removed** `okhttp3.mockwebserver.QueueDispatcher.Companion`  

okhttp3.mockwebserver.QueueDispatcher.Companion was removed in com.squareup.okhttp3:mockwebserver 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.squareup.okhttp3/mockwebserver/5.0.0)
- **Removed** `okhttp3.mockwebserver.QueueDispatcher.getResponseQueue`  

QueueDispatcher.getResponseQueue was removed in com.squareup.okhttp3:mockwebserver 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.squareup.okhttp3/mockwebserver/5.0.0)
- **Signature changed** `okhttp3.mockwebserver.MockResponse.setBody`  

The signature of MockResponse.setBody changed in com.squareup.okhttp3:mockwebserver 5.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.squareup.okhttp3/mockwebserver/5.0.0)
- **Signature changed** `okhttp3.mockwebserver.QueueDispatcher`  

Was class QueueDispatcher extends okhttp3.mockwebserver.Dispatcher; now final class QueueDispatcher extends okhttp3.mockwebserver.Dispatcher. [central.sonatype.com](https://central.sonatype.com/artifact/com.squareup.okhttp3/mockwebserver/5.0.0)

## com.squareup.okhttp3:mockwebserver 4.0.0 breaking changes

com.squareup.okhttp3:mockwebserver 4.0.0, released June 27, 2019: 2 breaking changes.

- **Removed** `okhttp3.mockwebserver.QueueDispatcher.responseQueue`  

QueueDispatcher.responseQueue was removed in com.squareup.okhttp3:mockwebserver 4.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.squareup.okhttp3/mockwebserver/4.0.0)
- **Signature changed** `okhttp3.mockwebserver.MockWebServer.setProtocols`  

Was void setProtocols(java.util.List\<okhttp3.Protocol>); now final void setProtocols(java.util.List\<? extends okhttp3.Protocol>). [central.sonatype.com](https://central.sonatype.com/artifact/com.squareup.okhttp3/mockwebserver/4.0.0)

## Related packages

- [com.squareup.okhttp3:okhttp](https://since.dev/packages/maven/com.squareup.okhttp3:okhttp.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.
