This repository was archived by the owner on Dec 19, 2018. It is now read-only.
File tree 2 files changed +8
-9
lines changed
src/Microsoft.AspNet.TestHost
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
3
4
- using System ;
5
- using System . Collections . Generic ;
6
4
using System . IO ;
5
+ using Microsoft . AspNet . Http ;
7
6
using Microsoft . AspNet . Http . Features ;
8
- using Microsoft . Extensions . Primitives ;
7
+ using Microsoft . AspNet . Http . Internal ;
9
8
10
9
namespace Microsoft . AspNet . TestHost
11
10
{
@@ -14,7 +13,7 @@ internal class RequestFeature : IHttpRequestFeature
14
13
public RequestFeature ( )
15
14
{
16
15
Body = Stream . Null ;
17
- Headers = new Dictionary < string , StringValues > ( StringComparer . OrdinalIgnoreCase ) ;
16
+ Headers = new HeaderDictionary ( ) ;
18
17
Method = "GET" ;
19
18
Path = "" ;
20
19
PathBase = "" ;
@@ -25,7 +24,7 @@ public RequestFeature()
25
24
26
25
public Stream Body { get ; set ; }
27
26
28
- public IDictionary < string , StringValues > Headers { get ; set ; }
27
+ public IHeaderDictionary Headers { get ; set ; }
29
28
30
29
public string Method { get ; set ; }
31
30
Original file line number Diff line number Diff line change 2
2
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3
3
4
4
using System ;
5
- using System . Collections . Generic ;
6
5
using System . IO ;
7
6
using System . Threading . Tasks ;
7
+ using Microsoft . AspNet . Http ;
8
8
using Microsoft . AspNet . Http . Features ;
9
- using Microsoft . Extensions . Primitives ;
9
+ using Microsoft . AspNet . Http . Internal ;
10
10
11
11
namespace Microsoft . AspNet . TestHost
12
12
{
@@ -17,7 +17,7 @@ internal class ResponseFeature : IHttpResponseFeature
17
17
18
18
public ResponseFeature ( )
19
19
{
20
- Headers = new Dictionary < string , StringValues > ( StringComparer . OrdinalIgnoreCase ) ;
20
+ Headers = new HeaderDictionary ( ) ;
21
21
Body = new MemoryStream ( ) ;
22
22
23
23
// 200 is the default status code all the way down to the host, so we set it
@@ -29,7 +29,7 @@ public ResponseFeature()
29
29
30
30
public string ReasonPhrase { get ; set ; }
31
31
32
- public IDictionary < string , StringValues > Headers { get ; set ; }
32
+ public IHeaderDictionary Headers { get ; set ; }
33
33
34
34
public Stream Body { get ; set ; }
35
35
You can’t perform that action at this time.
0 commit comments