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 @@ -44,6 +44,7 @@ public class DownstreamRouteBuilder
44
44
private SecurityOptions _securityOptions ;
45
45
private string _downstreamHttpMethod ;
46
46
private Version _downstreamHttpVersion ;
47
+ private bool _connectionClose ;
47
48
48
49
public DownstreamRouteBuilder ( )
49
50
{
@@ -263,6 +264,12 @@ public DownstreamRouteBuilder WithDownstreamHttpVersion(Version downstreamHttpVe
263
264
return this ;
264
265
}
265
266
267
+ public DownstreamRouteBuilder WithConnectionClose ( bool connectionClose )
268
+ {
269
+ _connectionClose = connectionClose ;
270
+ return this ;
271
+ }
272
+
266
273
public DownstreamRoute Build ( )
267
274
{
268
275
return new DownstreamRoute (
@@ -299,6 +306,7 @@ public DownstreamRoute Build()
299
306
_dangerousAcceptAnyServerCertificateValidator ,
300
307
_securityOptions ,
301
308
_downstreamHttpMethod ,
302
- _downstreamHttpVersion ) ;
309
+ _downstreamHttpVersion ,
310
+ _connectionClose ) ;
303
311
}
304
312
}
You can’t perform that action at this time.
0 commit comments