RequestHeadersTransformExtensions
Class static net10.0
Extensions for adding request header transforms.
namespace Aspire.Hosting.Yarp.Transforms;
public static class RequestHeadersTransformExtensions{ // ...} 6 members
Methods6
Section titled MethodsWithTransformCopyRequestHeaders(YarpRoute, bool)extension Adds the transform which will enable or suppress copying request headers to the proxy request.
WithTransformRequestHeader(YarpRoute, string, string, bool)extension Adds the transform which will append or set the request header.
WithTransformRequestHeaderRemove(YarpRoute, string)extension Adds the transform which will remove the request header.
WithTransformRequestHeaderRouteValue(YarpRoute, string, string, bool)extension Adds the transform which will append or set the request header from a route value.
WithTransformRequestHeadersAllowed(YarpRoute, string[])extension Adds the transform which will only copy the allowed request headers. Other transforms that modify or append to existing headers may be affected if not included in the allow list.
WithTransformUseOriginalHostHeader(YarpRoute, bool)extension Adds the transform which will copy the incoming request Host header to the proxy request.