File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/Ocelot/Configuration/Builder Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ public class DownstreamRouteBuilder
4040 private SecurityOptions _securityOptions ;
4141 private string _downstreamHttpMethod ;
4242 private Version _downstreamHttpVersion ;
43+ private bool _connectionClose ;
4344
4445 public DownstreamRouteBuilder ( )
4546 {
@@ -259,6 +260,12 @@ public DownstreamRouteBuilder WithDownstreamHttpVersion(Version downstreamHttpVe
259260 return this ;
260261 }
261262
263+ public DownstreamRouteBuilder WithConnectionClose ( bool connectionClose )
264+ {
265+ _connectionClose = connectionClose ;
266+ return this ;
267+ }
268+
262269 public DownstreamRoute Build ( )
263270 {
264271 return new DownstreamRoute (
@@ -295,6 +302,7 @@ public DownstreamRoute Build()
295302 _dangerousAcceptAnyServerCertificateValidator ,
296303 _securityOptions ,
297304 _downstreamHttpMethod ,
298- _downstreamHttpVersion ) ;
305+ _downstreamHttpVersion ,
306+ _connectionClose ) ;
299307 }
300308}
You can’t perform that action at this time.
0 commit comments