Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 9313a02

Browse files
committed
Remove duplication of parsing helper
1 parent 07470d4 commit 9313a02

File tree

4 files changed

+5
-412
lines changed

4 files changed

+5
-412
lines changed

src/Microsoft.AspNetCore.Http.Abstractions/Internal/HeaderSegment.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
namespace Microsoft.AspNetCore.Http.Internal
88
{
9-
internal struct HeaderSegment : IEquatable<HeaderSegment>
9+
public struct HeaderSegment : IEquatable<HeaderSegment>
1010
{
1111
private readonly StringSegment _formatting;
1212
private readonly StringSegment _data;
1313

1414
// <summary>
15-
// Initializes a new instance of the <see cref="HeaderSegment/> structure.
15+
// Initializes a new instance of the <see cref="HeaderSegment"/> structure.
1616
// </summary>
1717
public HeaderSegment(StringSegment formatting, StringSegment data)
1818
{

src/Microsoft.AspNetCore.Http.Abstractions/Internal/HeaderSegmentCollection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace Microsoft.AspNetCore.Http.Internal
1010
{
11-
internal struct HeaderSegmentCollection : IEnumerable<HeaderSegment>, IEquatable<HeaderSegmentCollection>
11+
public struct HeaderSegmentCollection : IEnumerable<HeaderSegment>, IEquatable<HeaderSegmentCollection>
1212
{
1313
private readonly StringValues _headers;
1414

@@ -62,7 +62,7 @@ IEnumerator IEnumerable.GetEnumerator()
6262
return GetEnumerator();
6363
}
6464

65-
internal struct Enumerator : IEnumerator<HeaderSegment>
65+
public struct Enumerator : IEnumerator<HeaderSegment>
6666
{
6767
private readonly StringValues _headers;
6868
private int _index;

src/Microsoft.AspNetCore.Http.Abstractions/Internal/ParsingHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace Microsoft.AspNetCore.Http.Internal
1010
{
11-
internal static class ParsingHelpers
11+
public static class ParsingHelpers
1212
{
1313
public static StringValues GetHeader(IHeaderDictionary headers, string key)
1414
{

0 commit comments

Comments
 (0)