|
| 1 | +--- |
| 2 | +title: "Dev Proxy v4.0.0-beta.1 with a new Kestrel-based proxy engine" |
| 3 | +description: "Dev Proxy v4.0.0-beta.1 moves the proxy engine to Kestrel. Try the beta with your existing configurations and report any differences from v3." |
| 4 | +date: 2026-09-21 |
| 5 | +author: "Waldek Mastykarz, Garry Trinder" |
| 6 | +tags: ["release"] |
| 7 | +image: "/blog/images/v4-0-0-beta1.png" |
| 8 | +--- |
| 9 | + |
| 10 | +We're releasing **Dev Proxy v4.0.0-beta.1**, the first beta built on our new Kestrel-based proxy engine. It retains the Dev Proxy functionality you use today while replacing the Titanium-/Unobtanium-based engine that handled network traffic in v3. |
| 11 | + |
| 12 | +We've added parity tests for the proxy engine and integration tests for individual plugins. The beta gives you time to check v4 against your applications and configurations before the stable release at the end of October. |
| 13 | + |
| 14 | +### **In this version:** |
| 15 | + |
| 16 | +- A new Kestrel-based proxy engine replacing the previous Titanium-/Unobtanium-based engine |
| 17 | +- Existing Dev Proxy functionality migrated to the new engine and covered by integration tests |
| 18 | +- Support for inspecting and mocking WebSocket traffic |
| 19 | +- A canonical plugin API that decouples plugins from the underlying proxy engine |
| 20 | + |
| 21 | +### **A new foundation for Dev Proxy** |
| 22 | + |
| 23 | +Since its first release, Dev Proxy has used Titanium.Web.Proxy, later maintained as Unobtanium, to inspect and manipulate API traffic. It served us well, but its limitations made it harder to support newer protocols and evolve Dev Proxy. |
| 24 | + |
| 25 | +In v4, we've rebuilt the proxy engine on Kestrel. Kestrel is part of .NET and maintained by the .NET team. By using it directly, Dev Proxy no longer depends on a separate proxy library and can support protocols that the previous engine couldn't handle. |
| 26 | + |
| 27 | +WebSocket support is the first new capability enabled by the change. Dev Proxy v4 can relay and inspect WebSocket traffic, and include it in generated HAR files. With **WebSocketMockResponsePlugin**, you can also return mocked responses to individual WebSocket messages. |
| 28 | + |
| 29 | +### **Breaking change for custom plugins** |
| 30 | + |
| 31 | +Following semantic versioning (SemVer), we're moving to a new major version because the migration changes the API used by custom plugins. This API change is the breaking change behind the v4 version number. |
| 32 | + |
| 33 | +**What changed:** |
| 34 | + |
| 35 | +Plugins now work with Dev Proxy's HTTP model instead of types from the previous proxy library. As a result, plugin code no longer depends on a specific proxy engine. |
| 36 | + |
| 37 | +**Impact:** If you maintain a custom plugin, you'll need to update it for v4. Use the beta to verify your plugin against the new API before the stable release. |
| 38 | + |
| 39 | +### **Test your existing scenarios** |
| 40 | + |
| 41 | +Dev Proxy v4 is intended to retain the behavior of v3, but replacing the proxy engine is a significant architectural change. Automated tests cover the engine and individual plugins, while the beta checks how they behave with real applications and traffic. When you test the beta: |
| 42 | + |
| 43 | +- Run your existing Dev Proxy configuration without changing it |
| 44 | +- Exercise the API traffic you use in development and tests |
| 45 | +- Try workflows such as recording, mocking, throttling, and generating reports |
| 46 | +- Test custom plugins and WebSocket scenarios if you use them |
| 47 | + |
| 48 | +Compare the results with v3. If requests fail or output changes, [open an issue](https://github.com/dotnet/dev-proxy/issues) with your operating system and configuration, along with the steps to reproduce the difference. Keep using v3.x for critical work until v4 reaches stable. |
| 49 | + |
| 50 | +## Dev Proxy Toolkit |
| 51 | + |
| 52 | +[Dev Proxy Toolkit](https://marketplace.visualstudio.com/items?itemName=garrytrinder.dev-proxy-toolkit) is an extension that makes it easier to work with Dev Proxy from within Visual Studio Code. The latest released version is v1.37.1. |
| 53 | + |
| 54 | +In this version, we've: |
| 55 | + |
| 56 | +- Updated all snippets that reference schemas to use the Dev Proxy v4.0.0 schema |
| 57 | + |
| 58 | +Checkout out the [changelog](https://marketplace.visualstudio.com/items?itemName=garrytrinder.dev-proxy-toolkit/changelog) for more information on changes and bug fixes. |
| 59 | + |
| 60 | +### **Try it now** |
| 61 | + |
| 62 | +Download [Dev Proxy v4.0.0-beta.1](https://github.com/dotnet/dev-proxy/releases/tag/v4.0.0-beta.1) and run it with your existing configurations. If you find a difference from v3, [open an issue](https://github.com/dotnet/dev-proxy/issues). For questions and ideas, [join the discussion](https://github.com/dotnet/dev-proxy/discussions). |
0 commit comments