v2.0.0
版本发布时间: 2023-02-14 22:45:42
microsoft/reverse-proxy最新发布版本:v2.2.0(2024-09-03 19:22:14)
This release supports .NET 6.0 and .NET 7.0. See Getting Started.
The Yarp.ReverseProxy packages are available on NuGet.org.
Breaking changes
- Existing
HttpTransformer
overloads that don't accept aCancellationToken
have been marked as obsolete (#2016).- If you have created a custom class that derives from
HttpTransformer
, you should update the implementation to override the overloads which accept theCancellationToken
instead. - Existing implementations that only override the obsolete overloads will continue working for the time being, but these overloads may be removed in a future major release.
- If you have created a custom class that derives from
- See 2.0.0-RC.1 release notes for the rest of the breaking changes between YARP 1.1 and 2.0.
Other changes
- Added a new enum value
ForwarderError.RequestCreation
that is reported if a request transform throws an exception (#2016). - Fixed a bug introduced in RC1 where custom response transform callbacks were not called on errors (when
ProxyResponse
isnull
) (#2016). - Fixed a bug where a request cancellation triggered by the manual
CancellationToken
(parameter toIHttpForwarder.SendAsync
) was reported asRequestTimedOut
instead ofRequestCanceled
(#2016).
For a full list of changes see here.