React to IHeaderDictionary changes.
This commit is contained in:
parent
9a12085ef9
commit
f7c7306881
|
|
@ -1,11 +1,10 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using Microsoft.AspNet.Http;
|
||||||
using Microsoft.AspNet.Http.Features;
|
using Microsoft.AspNet.Http.Features;
|
||||||
using Microsoft.Extensions.Primitives;
|
using Microsoft.AspNet.Http.Internal;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.TestHost
|
namespace Microsoft.AspNet.TestHost
|
||||||
{
|
{
|
||||||
|
|
@ -14,7 +13,7 @@ namespace Microsoft.AspNet.TestHost
|
||||||
public RequestFeature()
|
public RequestFeature()
|
||||||
{
|
{
|
||||||
Body = Stream.Null;
|
Body = Stream.Null;
|
||||||
Headers = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
|
Headers = new HeaderDictionary();
|
||||||
Method = "GET";
|
Method = "GET";
|
||||||
Path = "";
|
Path = "";
|
||||||
PathBase = "";
|
PathBase = "";
|
||||||
|
|
@ -25,7 +24,7 @@ namespace Microsoft.AspNet.TestHost
|
||||||
|
|
||||||
public Stream Body { get; set; }
|
public Stream Body { get; set; }
|
||||||
|
|
||||||
public IDictionary<string, StringValues> Headers { get; set; }
|
public IHeaderDictionary Headers { get; set; }
|
||||||
|
|
||||||
public string Method { get; set; }
|
public string Method { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Microsoft.AspNet.Http;
|
||||||
using Microsoft.AspNet.Http.Features;
|
using Microsoft.AspNet.Http.Features;
|
||||||
using Microsoft.Extensions.Primitives;
|
using Microsoft.AspNet.Http.Internal;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.TestHost
|
namespace Microsoft.AspNet.TestHost
|
||||||
{
|
{
|
||||||
|
|
@ -17,7 +17,7 @@ namespace Microsoft.AspNet.TestHost
|
||||||
|
|
||||||
public ResponseFeature()
|
public ResponseFeature()
|
||||||
{
|
{
|
||||||
Headers = new Dictionary<string, StringValues>(StringComparer.OrdinalIgnoreCase);
|
Headers = new HeaderDictionary();
|
||||||
Body = new MemoryStream();
|
Body = new MemoryStream();
|
||||||
|
|
||||||
// 200 is the default status code all the way down to the host, so we set it
|
// 200 is the default status code all the way down to the host, so we set it
|
||||||
|
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNet.TestHost
|
||||||
|
|
||||||
public string ReasonPhrase { get; set; }
|
public string ReasonPhrase { get; set; }
|
||||||
|
|
||||||
public IDictionary<string, StringValues> Headers { get; set; }
|
public IHeaderDictionary Headers { get; set; }
|
||||||
|
|
||||||
public Stream Body { get; set; }
|
public Stream Body { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue