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
On this page
Latest version 5.5.1, released October 22, 2026.
Packages on Maven Central run on Java. Java end of life dates.
com.squareup.okhttp3:mockwebserver 5.0.0 breaking changes
- Removed
okhttp3.mockwebserver.MockResponse.addInformationalResponse
MockResponse.addInformationalResponse was removed in com.squareup.okhttp3:mockwebserver 5.0.0 central.sonatype.com - Removed
okhttp3.mockwebserver.MockResponse.getDuplexResponseBody
MockResponse.getDuplexResponseBody was removed in com.squareup.okhttp3:mockwebserver 5.0.0 central.sonatype.com - Removed
okhttp3.mockwebserver.MockResponse.isDuplex
MockResponse.isDuplex was removed in com.squareup.okhttp3:mockwebserver 5.0.0 central.sonatype.com - Removed
okhttp3.mockwebserver.MockWebServer.SocketHandler
okhttp3.mockwebserver.MockWebServer.SocketHandler was removed in com.squareup.okhttp3:mockwebserver 5.0.0 central.sonatype.com - Removed
okhttp3.mockwebserver.QueueDispatcher.Companion
okhttp3.mockwebserver.QueueDispatcher.Companion was removed in com.squareup.okhttp3:mockwebserver 5.0.0 central.sonatype.com - Removed
okhttp3.mockwebserver.QueueDispatcher.getResponseQueue
QueueDispatcher.getResponseQueue was removed in com.squareup.okhttp3:mockwebserver 5.0.0 central.sonatype.com - Signature changed
okhttp3.mockwebserver.MockResponse.setBody
The signature of MockResponse.setBody changed in com.squareup.okhttp3:mockwebserver 5.0.0 central.sonatype.com - Signature changed
okhttp3.mockwebserver.QueueDispatcher
Was class QueueDispatcher extends okhttp3.mockwebserver.Dispatcher; now final class QueueDispatcher extends okhttp3.mockwebserver.Dispatcher. central.sonatype.com
com.squareup.okhttp3:mockwebserver 4.0.0 breaking changes
- Removed
okhttp3.mockwebserver.QueueDispatcher.responseQueue
QueueDispatcher.responseQueue was removed in com.squareup.okhttp3:mockwebserver 4.0.0 central.sonatype.com - 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
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.