ForwardedTransformExtensions Methods
ClassMethods3 members
Extensions for adding forwarded header transforms.
WithTransformClientCertHeader(YarpRoute, string)Section titled WithTransformClientCertHeader(YarpRoute, string)extensionYarpRoute 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) { // ... }}Parameters
routeYarpRouteheaderNamestringWithTransformForwarded(YarpRoute, bool, bool, NodeFormat, NodeFormat, ForwardedTransformActions)Section titled WithTransformForwarded(YarpRoute, bool, bool, NodeFormat, NodeFormat, ForwardedTransformActions)extensionYarpRoute 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) { // ... }}Parameters
routeYarpRouteuseHostbooloptionaluseProtobooloptionalforFormatNodeFormatoptionalbyFormatNodeFormatoptionalactionForwardedTransformActionsoptionalWithTransformXForwarded(YarpRoute, string, ForwardedTransformActions, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?)Section titled WithTransformXForwarded(YarpRoute, string, ForwardedTransformActions, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?)extensionYarpRoute 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) { // ... }}Parameters
routeYarpRouteheaderPrefixstringoptionalxDefaultForwardedTransformActionsoptionalxForForwardedTransformActions?optionalxHostForwardedTransformActions?optionalxProtoForwardedTransformActions?optionalxPrefixForwardedTransformActions?optional