Skip to content
Docs Try Aspire

ForwardedTransformExtensions Methods

Class Methods 3 members
Extensions for adding forwarded header transforms.
WithTransformClientCertHeader(YarpRoute, string) Section titled WithTransformClientCertHeader(YarpRoute, string) extension YarpRoute
Adds the transform which will set the given header with the Base64 encoded client certificate.
public static class ForwardedTransformExtensions
{
public static YarpRoute WithTransformClientCertHeader(
this YarpRoute route,
string headerName)
{
// ...
}
}
route YarpRoute
headerName string
WithTransformForwarded(YarpRoute, bool, bool, NodeFormat, NodeFormat, ForwardedTransformActions) Section titled WithTransformForwarded(YarpRoute, bool, bool, NodeFormat, NodeFormat, ForwardedTransformActions) extension YarpRoute
Adds the transform which will add the Forwarded header as defined by [RFC 7239](https://tools.ietf.org/html/rfc7239).
public static class ForwardedTransformExtensions
{
public static YarpRoute WithTransformForwarded(
this YarpRoute route,
bool useHost = true,
bool useProto = true,
NodeFormat forFormat = NodeFormat.Random,
NodeFormat byFormat = NodeFormat.Random,
ForwardedTransformActions action = ForwardedTransformActions.Set)
{
// ...
}
}
route YarpRoute
useHost bool optional
useProto bool optional
forFormat NodeFormat optional
byFormat NodeFormat optional
action ForwardedTransformActions optional
WithTransformXForwarded(YarpRoute, string, ForwardedTransformActions, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?) Section titled WithTransformXForwarded(YarpRoute, string, ForwardedTransformActions, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?) extension YarpRoute
Adds the transform which will add X-Forwarded-* headers.
public static class ForwardedTransformExtensions
{
public static YarpRoute WithTransformXForwarded(
this YarpRoute route,
string headerPrefix = "X-Forwarded-",
ForwardedTransformActions xDefault = ForwardedTransformActions.Set,
ForwardedTransformActions? xFor = null,
ForwardedTransformActions? xHost = null,
ForwardedTransformActions? xProto = null,
ForwardedTransformActions? xPrefix = null)
{
// ...
}
}
route YarpRoute
headerPrefix string optional
xDefault ForwardedTransformActions optional
xFor ForwardedTransformActions? optional
xHost ForwardedTransformActions? optional
xProto ForwardedTransformActions? optional
xPrefix ForwardedTransformActions? optional