Skip to content

Update ProxyResponse documentation to reference IForwarderErrorFeature #2854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/ReverseProxy/Transforms/ResponseTransformContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Net.Http;
using System.Threading;
using Microsoft.AspNetCore.Http;
using Yarp.ReverseProxy.Forwarder;

namespace Yarp.ReverseProxy.Transforms;

Expand All @@ -19,6 +20,9 @@ public class ResponseTransformContext

/// <summary>
/// The proxy response. This can be null if the destination did not respond.
/// When null, check <see cref="HttpContext.Features"/> Get&lt;IForwarderErrorFeature&gt;() method
/// or <see cref="HttpContextFeaturesExtensions.GetForwarderErrorFeature"/> method
/// for details about the error via the <see cref="IForwarderErrorFeature"/>.
/// </summary>
public HttpResponseMessage? ProxyResponse { get; init; }

Expand Down
Loading