internal RedirectionMiddleware(RaftHttpCluster cluster, RequestDelegate next, PathString pathMatch, int?applicationPortHint, Func <HttpResponse, Uri, Task> redirection) { this.cluster = cluster; this.next = next; this.applicationPortHint = applicationPortHint; this.redirection = redirection ?? Redirect; this.pathMatch = pathMatch; }
private static RequestDelegate CreateRedirectionMiddleware(this RaftHttpCluster cluster, RequestDelegate next) => new RedirectionMiddleware(cluster, next).Redirect;
internal RedirectionMiddleware(RaftHttpCluster cluster, RequestDelegate next) { this.cluster = cluster; this.next = next; }