ForwardedTransformExtensions Methods
ClassMethods3 members
Extensions for adding forwarded header transforms.
WithTransformClientCertHeader(YarpRoute, string) Section titled WithTransformClientCertHeader(YarpRoute, string)extensionYarp 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
routeYarpheaderName stringWithTransformForwarded(YarpRoute, bool, bool, NodeFormat, NodeFormat, ForwardedTransformActions) Section titled WithTransformForwarded(YarpRoute, bool, bool, NodeFormat, NodeFormat, ForwardedTransformActions)extensionYarp 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
routeYarpuseHost booloptionaluseProto booloptionalforFormat NodeFormat optionalbyFormat NodeFormat optionalactionForwardedTransformActions optionalWithTransformXForwarded(YarpRoute, string, ForwardedTransformActions, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?) Section titled WithTransformXForwarded(YarpRoute, string, ForwardedTransformActions, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?, ForwardedTransformActions?)extensionYarp 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
routeYarpheaderPrefix stringoptionalxDefault ForwardedTransformActions optionalxFor ForwardedTransformActions? optionalxHost ForwardedTransformActions? optionalxProto ForwardedTransformActions? optionalxPrefix ForwardedTransformActions? optional