Commit 580e6265 authored by Shani Elharrar's avatar Shani Elharrar

Moved HttpHeadersDebuggerDisplayProxy

parent 16add7ec
......@@ -2,7 +2,6 @@ using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
......@@ -56,50 +55,4 @@ namespace uhttpsharp.Headers
}
}
}
internal class HttpHeadersDebuggerProxy
{
private readonly IHttpHeaders _real;
[DebuggerDisplay("{Value,nq}", Name = "{Key,nq}")]
internal class HttpHeader
{
private readonly KeyValuePair<string, string> _header;
public HttpHeader(KeyValuePair<string, string> header)
{
_header = header;
}
public string Value
{
get
{
return _header.Value;
}
}
public string Key
{
get
{
return _header.Key;
}
}
}
public HttpHeadersDebuggerProxy(IHttpHeaders real)
{
_real = real;
}
[DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
public HttpHeader[] Headers
{
get
{
return _real.Select(kvp => new HttpHeader(kvp)).ToArray();
}
}
}
}
\ No newline at end of file
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace uhttpsharp.Headers
{
internal class HttpHeadersDebuggerProxy
{
private readonly IHttpHeaders _real;
[DebuggerDisplay("{Value,nq}", Name = "{Key,nq}")]
internal class HttpHeader
{
private readonly KeyValuePair<string, string> _header;
public HttpHeader(KeyValuePair<string, string> header)
{
_header = header;
}
public string Value
{
get
{
return _header.Value;
}
}
public string Key
{
get
{
return _header.Key;
}
}
}
public HttpHeadersDebuggerProxy(IHttpHeaders real)
{
_real = real;
}
[DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
public HttpHeader[] Headers
{
get
{
return _real.Select(kvp => new HttpHeader(kvp)).ToArray();
}
}
}
}
\ No newline at end of file
......@@ -63,6 +63,7 @@
<Compile Include="Handlers\RestHandler.cs" />
<Compile Include="Headers\EmptyHttpHeaders.cs" />
<Compile Include="Headers\HttpHeaders.cs" />
<Compile Include="Headers\HttpHeadersDebuggerProxy.cs" />
<Compile Include="Headers\HttpHeadersExtensions.cs" />
<Compile Include="Headers\IHttpHeaders.cs" />
<Compile Include="Headers\QueryStringHttpHeaders.cs" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment