Browse files

fix #909 by moving most classes to Internal ns

  • Loading branch information...
1 parent ef74926 commit 09f5be1434257948414ae993f52f975f99bf26cd @anurse anurse committed Jun 3, 2016
Showing with 225 additions and 236 deletions.
  1. +1 −1 makefile.shade
  2. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{Exceptions → }/BadHttpRequestException.cs
  3. +4 −4 src/Microsoft.AspNetCore.Server.Kestrel/Filter/{ → Internal}/FilteredStreamAdapter.cs
  4. +3 −3 src/Microsoft.AspNetCore.Server.Kestrel/Filter/{ → Internal}/LibuvStream.cs
  5. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/Filter/{ → Internal}/LoggingStream.cs
  6. +3 −3 src/Microsoft.AspNetCore.Server.Kestrel/Filter/{ → Internal}/StreamSocketOutput.cs
  7. +1 −0 src/Microsoft.AspNetCore.Server.Kestrel/Filter/LoggingConnectionFilter.cs
  8. +1 −2 src/Microsoft.AspNetCore.Server.Kestrel/Filter/NoOpConnectionFilter.cs
  9. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/ChunkWriter.cs
  10. +4 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/Connection.cs
  11. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/ConnectionContext.cs
  12. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/ConnectionManager.cs
  13. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/DateHeaderValueManager.cs
  14. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/Frame.FeatureCollection.cs
  15. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/Frame.Generated.cs
  16. +2 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/Frame.cs
  17. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/FrameDuplexStream.cs
  18. +2 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/FrameHeaders.Generated.cs
  19. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/FrameHeaders.cs
  20. +1 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/FrameOfT.cs
  21. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/FrameRequestHeaders.cs
  22. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/FrameRequestStream.cs
  23. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/FrameResponseHeaders.cs
  24. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/FrameResponseStream.cs
  25. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/FrameStreamState.cs
  26. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/IAsyncDisposable.cs
  27. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/IConnectionControl.cs
  28. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/IFrameControl.cs
  29. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/ISocketOutput.cs
  30. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/Listener.cs
  31. +3 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/ListenerContext.cs
  32. +3 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/ListenerPrimary.cs
  33. +3 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/ListenerSecondary.cs
  34. +2 −4 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/MessageBody.cs
  35. +1 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/PathNormalizer.cs
  36. +3 −4 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/PipeListener.cs
  37. +3 −4 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/PipeListenerPrimary.cs
  38. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/PipeListenerSecondary.cs
  39. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/ProduceEndType.cs
  40. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/ReasonPhrases.cs
  41. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/SocketInput.cs
  42. +1 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/SocketInputExtensions.cs
  43. +3 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/SocketOutput.cs
  44. +3 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/TcpListener.cs
  45. +3 −5 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/TcpListenerPrimary.cs
  46. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/TcpListenerSecondary.cs
  47. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Http/UrlPathDecoder.cs
  48. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/AsciiUtilities.cs
  49. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/Constants.cs
  50. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/Disposable.cs
  51. +1 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/IKestrelTrace.cs
  52. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/ISystemClock.cs
  53. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/IThreadPool.cs
  54. +3 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/KestrelThread.cs
  55. +2 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/KestrelTrace.cs
  56. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/LoggingThreadPool.cs
  57. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/MemoryPool.cs
  58. +1 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/MemoryPoolBlock.cs
  59. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/MemoryPoolIterator.cs
  60. +1 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/MemoryPoolIteratorExtensions.cs
  61. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/MemoryPoolSlab.cs
  62. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/Streams.cs
  63. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/SystemClock.cs
  64. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Infrastructure/TaskUtilities.cs
  65. +3 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/KestrelEngine.cs
  66. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/Libuv.cs
  67. +1 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/PlatformApis.cs
  68. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/SockAddr.cs
  69. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/UvAsyncHandle.cs
  70. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/UvConnectRequest.cs
  71. +1 −1 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/UvException.cs
  72. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/UvHandle.cs
  73. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/UvLoopHandle.cs
  74. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/UvMemory.cs
  75. +2 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/UvPipeHandle.cs
  76. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/UvRequest.cs
  77. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/UvShutdownReq.cs
  78. +3 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/UvStreamHandle.cs
  79. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/UvTcpHandle.cs
  80. +2 −2 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/Networking/UvWriteReq.cs
  81. +3 −3 src/Microsoft.AspNetCore.Server.Kestrel/{ → Internal}/ServiceContext.cs
  82. +4 −4 src/Microsoft.AspNetCore.Server.Kestrel/KestrelServer.cs
  83. +1 −2 src/Microsoft.AspNetCore.Server.Kestrel/ServerAddress.cs
  84. +1 −1 test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs
  85. +2 −3 test/Microsoft.AspNetCore.Server.KestrelTests/AsciiDecoding.cs
  86. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/BadHttpRequestTests.cs
  87. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/ChunkWriterTests.cs
  88. +5 −4 test/Microsoft.AspNetCore.Server.KestrelTests/ConnectionTests.cs
  89. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/CreateIPEndpointTests.cs
  90. +2 −2 test/Microsoft.AspNetCore.Server.KestrelTests/DateHeaderValueManagerTests.cs
  91. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/DefaultHeaderTests.cs
  92. +3 −2 test/Microsoft.AspNetCore.Server.KestrelTests/EngineTests.cs
  93. +2 −2 test/Microsoft.AspNetCore.Server.KestrelTests/FrameRequestHeadersTests.cs
  94. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/FrameRequestStreamTests.cs
  95. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/FrameResponseHeadersTests.cs
  96. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/FrameResponseStreamTests.cs
  97. +3 −5 test/Microsoft.AspNetCore.Server.KestrelTests/FrameTests.cs
  98. +3 −3 test/Microsoft.AspNetCore.Server.KestrelTests/HttpsConnectionFilterTests.cs
  99. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/KestrelServerTests.cs
  100. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/LoggingThreadPoolTests.cs
  101. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/MemoryPoolBlockTests.cs
  102. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/MemoryPoolExtensions.cs
  103. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/MemoryPoolIteratorTests.cs
  104. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/MessageBodyTests.cs
  105. +3 −2 test/Microsoft.AspNetCore.Server.KestrelTests/MultipleLoopTests.cs
  106. +3 −2 test/Microsoft.AspNetCore.Server.KestrelTests/NetworkingTests.cs
  107. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/PathNormalizerTests.cs
  108. +3 −2 test/Microsoft.AspNetCore.Server.KestrelTests/SocketInputTests.cs
  109. +4 −3 test/Microsoft.AspNetCore.Server.KestrelTests/SocketOutputTests.cs
  110. +2 −1 test/Microsoft.AspNetCore.Server.KestrelTests/StreamSocketOutputTests.cs
  111. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/TestConnection.cs
  112. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/MockConnection.cs
  113. +2 −2 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/MockFrameControl.cs
  114. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/MockLibuv.cs
  115. +2 −2 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/MockSocket.cs
  116. +2 −2 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/MockSocketOuptut.cs
  117. +1 −1 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/MockSystemClock.cs
  118. +2 −1 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/PassThroughConnectionFilter.cs
  119. +1 −0 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/TestApplicationErrorLogger.cs
  120. +1 −2 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/TestKestrelTrace.cs
  121. +3 −2 test/Microsoft.AspNetCore.Server.KestrelTests/TestInput.cs
  122. +2 −1 test/Microsoft.AspNetCore.Server.KestrelTests/TestServer.cs
  123. +3 −2 test/Microsoft.AspNetCore.Server.KestrelTests/TestServiceContext.cs
  124. +2 −2 test/Microsoft.AspNetCore.Server.KestrelTests/UrlPathDecoder.cs
  125. +1 −1 tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/FrameFeatureCollection.cs
  126. +2 −3 tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/KnownHeaders.cs
View
2 makefile.shade
@@ -8,4 +8,4 @@ k-standard-goals
custom-goals
#initialize if='Directory.Exists("src")'
- exec program='dotnet' commandline='run -p ../../tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode Http/FrameHeaders.Generated.cs Http/Frame.Generated.cs' workingdir='${kestrelSrcDir}'
+ exec program='dotnet' commandline='run -p ../../tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode Internal/Http/FrameHeaders.Generated.cs Internal/Http/Frame.Generated.cs' workingdir='${kestrelSrcDir}'
View
2 ...rel/Exceptions/BadHttpRequestException.cs → ...Server.Kestrel/BadHttpRequestException.cs
@@ -3,7 +3,7 @@
using System.IO;
-namespace Microsoft.AspNetCore.Server.Kestrel.Exceptions
+namespace Microsoft.AspNetCore.Server.Kestrel
{
public sealed class BadHttpRequestException : IOException
{
View
8 ...r.Kestrel/Filter/FilteredStreamAdapter.cs → .../Filter/Internal/FilteredStreamAdapter.cs
@@ -4,11 +4,11 @@
using System;
using System.IO;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Filter
+namespace Microsoft.AspNetCore.Server.Kestrel.Filter.Internal
{
public class FilteredStreamAdapter : IDisposable
{
@@ -58,7 +58,7 @@ public void Dispose()
{
SocketInput.Dispose();
}
-
+
private async Task FilterInputAsync(MemoryPoolBlock block)
{
int bytesRead;
View
6 ...Core.Server.Kestrel/Filter/LibuvStream.cs → ...er.Kestrel/Filter/Internal/LibuvStream.cs
@@ -5,10 +5,10 @@
using System.IO;
using System.Threading;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Filter
+namespace Microsoft.AspNetCore.Server.Kestrel.Filter.Internal
{
public class LibuvStream : Stream
{
View
2 ...re.Server.Kestrel/Filter/LoggingStream.cs → ....Kestrel/Filter/Internal/LoggingStream.cs
@@ -7,7 +7,7 @@
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Filter
+namespace Microsoft.AspNetCore.Server.Kestrel.Filter.Internal
{
internal class LoggingStream : Stream
{
View
6 ...rver.Kestrel/Filter/StreamSocketOutput.cs → ...rel/Filter/Internal/StreamSocketOutput.cs
@@ -6,10 +6,10 @@
using System.Text;
using System.Threading;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Filter
+namespace Microsoft.AspNetCore.Server.Kestrel.Filter.Internal
{
public class StreamSocketOutput : ISocketOutput
{
View
1 src/Microsoft.AspNetCore.Server.Kestrel/Filter/LoggingConnectionFilter.cs
@@ -3,6 +3,7 @@
using System;
using System.Threading.Tasks;
+using Microsoft.AspNetCore.Server.Kestrel.Filter.Internal;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Server.Kestrel.Filter
View
3 src/Microsoft.AspNetCore.Server.Kestrel/Filter/NoOpConnectionFilter.cs
@@ -2,8 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Http.Features;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
namespace Microsoft.AspNetCore.Server.Kestrel.Filter
{
View
4 ...etCore.Server.Kestrel/Http/ChunkWriter.cs → ...rver.Kestrel/Internal/Http/ChunkWriter.cs
@@ -3,9 +3,9 @@
using System;
using System.Text;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public static class ChunkWriter
{
View
7 ...NetCore.Server.Kestrel/Http/Connection.cs → ...erver.Kestrel/Internal/Http/Connection.cs
@@ -5,11 +5,12 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Server.Kestrel.Filter;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Filter.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public class Connection : ConnectionContext, IConnectionControl
{
View
2 ....Server.Kestrel/Http/ConnectionContext.cs → ...estrel/Internal/Http/ConnectionContext.cs
@@ -5,7 +5,7 @@
using System.Net;
using Microsoft.AspNetCore.Http.Features;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public class ConnectionContext : ListenerContext
{
View
4 ....Server.Kestrel/Http/ConnectionManager.cs → ...estrel/Internal/Http/ConnectionManager.cs
@@ -4,9 +4,9 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public class ConnectionManager
{
View
4 ...er.Kestrel/Http/DateHeaderValueManager.cs → ...l/Internal/Http/DateHeaderValueManager.cs
@@ -4,9 +4,9 @@
using System;
using System.Text;
using System.Threading;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
/// <summary>
/// Manages the generation of the date header value.
View
2 ...r.Kestrel/Http/Frame.FeatureCollection.cs → .../Internal/Http/Frame.FeatureCollection.cs
@@ -13,7 +13,7 @@
using Microsoft.AspNetCore.Http.Features;
using Microsoft.Extensions.Primitives;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public partial class Frame : IFeatureCollection,
IHttpRequestFeature,
View
2 ...re.Server.Kestrel/Http/Frame.Generated.cs → ....Kestrel/Internal/Http/Frame.Generated.cs
@@ -2,7 +2,7 @@
using System;
using System.Collections.Generic;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public partial class Frame
{
View
5 ...t.AspNetCore.Server.Kestrel/Http/Frame.cs → ...ore.Server.Kestrel/Internal/Http/Frame.cs
@@ -11,14 +11,13 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Exceptions;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Primitives;
// ReSharper disable AccessToModifiedClosure
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public abstract partial class Frame : ConnectionContext, IFrameControl
{
View
2 ....Server.Kestrel/Http/FrameDuplexStream.cs → ...estrel/Internal/Http/FrameDuplexStream.cs
@@ -8,7 +8,7 @@
using System.Threading;
using System.Threading.Tasks;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
class FrameDuplexStream : Stream
{
View
5 ...er.Kestrel/Http/FrameHeaders.Generated.cs → ...l/Internal/Http/FrameHeaders.Generated.cs
@@ -1,11 +1,10 @@
using System;
using System.Collections.Generic;
-using Microsoft.AspNetCore.Server.Kestrel.Exceptions;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.Extensions.Primitives;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public partial class FrameRequestHeaders
View
2 ...tCore.Server.Kestrel/Http/FrameHeaders.cs → ...ver.Kestrel/Internal/Http/FrameHeaders.cs
@@ -8,7 +8,7 @@
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Primitives;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public abstract class FrameHeaders : IHeaderDictionary
{
View
3 ...spNetCore.Server.Kestrel/Http/FrameOfT.cs → ....Server.Kestrel/Internal/Http/FrameOfT.cs
@@ -5,10 +5,9 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting.Server;
-using Microsoft.AspNetCore.Server.Kestrel.Exceptions;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public class Frame<TContext> : Frame
{
View
4 ...erver.Kestrel/Http/FrameRequestHeaders.cs → ...trel/Internal/Http/FrameRequestHeaders.cs
@@ -1,11 +1,11 @@
// 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.
-using Microsoft.Extensions.Primitives;
using System.Collections;
using System.Collections.Generic;
+using Microsoft.Extensions.Primitives;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public partial class FrameRequestHeaders : FrameHeaders
{
View
4 ...Server.Kestrel/Http/FrameRequestStream.cs → ...strel/Internal/Http/FrameRequestStream.cs
@@ -5,9 +5,9 @@
using System.IO;
using System.Threading;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
class FrameRequestStream : Stream
{
View
4 ...rver.Kestrel/Http/FrameResponseHeaders.cs → ...rel/Internal/Http/FrameResponseHeaders.cs
@@ -3,10 +3,10 @@
using System.Collections;
using System.Collections.Generic;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.Extensions.Primitives;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public partial class FrameResponseHeaders : FrameHeaders
{
View
4 ...erver.Kestrel/Http/FrameResponseStream.cs → ...trel/Internal/Http/FrameResponseStream.cs
@@ -5,9 +5,9 @@
using System.IO;
using System.Threading;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
class FrameResponseStream : Stream
{
View
2 ...e.Server.Kestrel/Http/FrameStreamState.cs → ...Kestrel/Internal/Http/FrameStreamState.cs
@@ -1,7 +1,7 @@
// 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.
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
enum FrameStreamState
{
View
2 ...e.Server.Kestrel/Http/IAsyncDisposable.cs → ...Kestrel/Internal/Http/IAsyncDisposable.cs
@@ -3,7 +3,7 @@
using System.Threading.Tasks;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
interface IAsyncDisposable
{
View
2 ...Server.Kestrel/Http/IConnectionControl.cs → ...strel/Internal/Http/IConnectionControl.cs
@@ -1,7 +1,7 @@
// 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.
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public interface IConnectionControl
{
View
2 ...Core.Server.Kestrel/Http/IFrameControl.cs → ...er.Kestrel/Internal/Http/IFrameControl.cs
@@ -5,7 +5,7 @@
using System.Threading;
using System.Threading.Tasks;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public interface IFrameControl
{
View
4 ...Core.Server.Kestrel/Http/ISocketOutput.cs → ...er.Kestrel/Internal/Http/ISocketOutput.cs
@@ -4,9 +4,9 @@
using System;
using System.Threading;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
/// <summary>
/// Operations performed for buffered socket output
View
4 ...spNetCore.Server.Kestrel/Http/Listener.cs → ....Server.Kestrel/Internal/Http/Listener.cs
@@ -3,10 +3,10 @@
using System;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
/// <summary>
/// Base class for listeners in Kestrel. Listens for incoming connections
View
6 ...re.Server.Kestrel/Http/ListenerContext.cs → ....Kestrel/Internal/Http/ListenerContext.cs
@@ -2,10 +2,10 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public class ListenerContext : ServiceContext
{
View
6 ...re.Server.Kestrel/Http/ListenerPrimary.cs → ....Kestrel/Internal/Http/ListenerPrimary.cs
@@ -5,11 +5,11 @@
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
/// <summary>
/// A primary listener waits for incoming connections on a specified socket. Incoming
View
6 ....Server.Kestrel/Http/ListenerSecondary.cs → ...estrel/Internal/Http/ListenerSecondary.cs
@@ -5,11 +5,11 @@
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
/// <summary>
/// A secondary listener is delegated requests from a primary listener via a named pipe or
View
6 ...etCore.Server.Kestrel/Http/MessageBody.cs → ...rver.Kestrel/Internal/Http/MessageBody.cs
@@ -2,14 +2,12 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
-using System.IO;
using System.Numerics;
using System.Threading;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Exceptions;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public abstract class MessageBody
{
View
4 ...ore.Server.Kestrel/Http/PathNormalizer.cs → ...r.Kestrel/Internal/Http/PathNormalizer.cs
@@ -1,11 +1,9 @@
// 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.
-using System;
using System.Buffers;
-using System.Text;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public static class PathNormalizer
{
View
7 ...tCore.Server.Kestrel/Http/PipeListener.cs → ...ver.Kestrel/Internal/Http/PipeListener.cs
@@ -1,12 +1,11 @@
// 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.
-using System;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
/// <summary>
/// Implementation of <see cref="Listener"/> that uses UNIX domain sockets as its transport.
View
7 ...erver.Kestrel/Http/PipeListenerPrimary.cs → ...trel/Internal/Http/PipeListenerPrimary.cs
@@ -1,12 +1,11 @@
// 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.
-using System;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
/// <summary>
/// An implementation of <see cref="ListenerPrimary"/> using UNIX sockets.
View
4 ...ver.Kestrel/Http/PipeListenerSecondary.cs → ...el/Internal/Http/PipeListenerSecondary.cs
@@ -1,9 +1,9 @@
// 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.
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
/// <summary>
/// An implementation of <see cref="ListenerSecondary"/> using UNIX sockets.
View
2 ...ore.Server.Kestrel/Http/ProduceEndType.cs → ...r.Kestrel/Internal/Http/ProduceEndType.cs
@@ -1,7 +1,7 @@
// 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.
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public enum ProduceEndType
{
View
2 ...Core.Server.Kestrel/Http/ReasonPhrases.cs → ...er.Kestrel/Internal/Http/ReasonPhrases.cs
@@ -4,7 +4,7 @@
using System.Globalization;
using System.Text;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public static class ReasonPhrases
{
View
4 ...etCore.Server.Kestrel/Http/SocketInput.cs → ...rver.Kestrel/Internal/Http/SocketInput.cs
@@ -7,9 +7,9 @@
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public class SocketInput : ICriticalNotifyCompletion, IDisposable
{
View
3 ...ver.Kestrel/Http/SocketInputExtensions.cs → ...el/Internal/Http/SocketInputExtensions.cs
@@ -2,9 +2,8 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public static class SocketInputExtensions
{
View
6 ...tCore.Server.Kestrel/Http/SocketOutput.cs → ...ver.Kestrel/Internal/Http/SocketOutput.cs
@@ -6,11 +6,11 @@
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public class SocketOutput : ISocketOutput
{
View
6 ...etCore.Server.Kestrel/Http/TcpListener.cs → ...rver.Kestrel/Internal/Http/TcpListener.cs
@@ -1,11 +1,11 @@
// 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.
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
/// <summary>
/// Implementation of <see cref="Listener"/> that uses TCP sockets as its transport.
View
8 ...Server.Kestrel/Http/TcpListenerPrimary.cs → ...strel/Internal/Http/TcpListenerPrimary.cs
@@ -1,13 +1,11 @@
// 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.
-using System;
-using System.Net;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
/// <summary>
/// An implementation of <see cref="ListenerPrimary"/> using TCP sockets.
View
4 ...rver.Kestrel/Http/TcpListenerSecondary.cs → ...rel/Internal/Http/TcpListenerSecondary.cs
@@ -1,9 +1,9 @@
// 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.
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
/// <summary>
/// An implementation of <see cref="ListenerSecondary"/> using TCP sockets.
View
4 ...ore.Server.Kestrel/Http/UrlPathDecoder.cs → ...r.Kestrel/Internal/Http/UrlPathDecoder.cs
@@ -1,9 +1,9 @@
// 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.
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{
public class UrlPathDecoder
{
View
2 ....Kestrel/Infrastructure/AsciiUtilities.cs → ...Internal/Infrastructure/AsciiUtilities.cs
@@ -1,7 +1,7 @@
// 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.
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
internal class AsciiUtilities
{
View
2 ...erver.Kestrel/Infrastructure/Constants.cs → ...trel/Internal/Infrastructure/Constants.cs
@@ -3,7 +3,7 @@
using System.Runtime.InteropServices;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
internal class Constants
{
View
2 ...rver.Kestrel/Infrastructure/Disposable.cs → ...rel/Internal/Infrastructure/Disposable.cs
@@ -3,7 +3,7 @@
using System;
-namespace Microsoft.AspNetCore.Server.Kestrel
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal
{
/// <summary>
/// Summary description for Disposable
View
3 ...r.Kestrel/Infrastructure/IKestrelTrace.cs → .../Internal/Infrastructure/IKestrelTrace.cs
@@ -1,8 +1,7 @@
using System;
using Microsoft.Extensions.Logging;
-using Microsoft.AspNetCore.Server.Kestrel.Exceptions;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
public interface IKestrelTrace : ILogger
{
View
2 ...er.Kestrel/Infrastructure/ISystemClock.cs → ...l/Internal/Infrastructure/ISystemClock.cs
@@ -3,7 +3,7 @@
using System;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
/// <summary>
/// Abstracts the system clock to facilitate testing.
View
2 ...ver.Kestrel/Infrastructure/IThreadPool.cs → ...el/Internal/Infrastructure/IThreadPool.cs
@@ -4,7 +4,7 @@
using System;
using System.Threading.Tasks;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
public interface IThreadPool
{
View
6 ...r.Kestrel/Infrastructure/KestrelThread.cs → .../Internal/Infrastructure/KestrelThread.cs
@@ -7,11 +7,11 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal
{
/// <summary>
/// Summary description for KestrelThread
View
5 ...er.Kestrel/Infrastructure/KestrelTrace.cs → ...l/Internal/Infrastructure/KestrelTrace.cs
@@ -2,11 +2,10 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Exceptions;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal
{
/// <summary>
/// Summary description for KestrelTrace
View
2 ...strel/Infrastructure/LoggingThreadPool.cs → ...ernal/Infrastructure/LoggingThreadPool.cs
@@ -6,7 +6,7 @@
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
public class LoggingThreadPool : IThreadPool
{
View
2 ...rver.Kestrel/Infrastructure/MemoryPool.cs → ...rel/Internal/Infrastructure/MemoryPool.cs
@@ -2,7 +2,7 @@
using System.Collections.Concurrent;
using System.Diagnostics;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
/// <summary>
/// Used to allocate and distribute re-usable blocks of memory.
View
3 ...Kestrel/Infrastructure/MemoryPoolBlock.cs → ...nternal/Infrastructure/MemoryPoolBlock.cs
@@ -1,9 +1,8 @@
using System;
using System.Diagnostics;
-using System.Runtime.InteropServices;
using System.Text;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
/// <summary>
/// Block tracking object used by the byte buffer memory pool. A slab is a large allocation which is divided into smaller blocks. The
View
2 ...trel/Infrastructure/MemoryPoolIterator.cs → ...rnal/Infrastructure/MemoryPoolIterator.cs
@@ -6,7 +6,7 @@
using System.Numerics;
using System.Threading;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
public struct MemoryPoolIterator
{
View
3 ...structure/MemoryPoolIteratorExtensions.cs → ...structure/MemoryPoolIteratorExtensions.cs
@@ -4,9 +4,8 @@
using System;
using System.Diagnostics;
using System.Text;
-using Microsoft.AspNetCore.Server.Kestrel.Exceptions;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
public static class MemoryPoolIteratorExtensions
{
View
2 ....Kestrel/Infrastructure/MemoryPoolSlab.cs → ...Internal/Infrastructure/MemoryPoolSlab.cs
@@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
/// <summary>
/// Slab tracking object used by the byte buffer memory pool. A slab is a large allocation which is divided into smaller blocks. The
View
4 ....Server.Kestrel/Infrastructure/Streams.cs → ...estrel/Internal/Infrastructure/Streams.cs
@@ -1,9 +1,9 @@
// 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.
-using Microsoft.AspNetCore.Server.Kestrel.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
class Streams
{
View
2 ...ver.Kestrel/Infrastructure/SystemClock.cs → ...el/Internal/Infrastructure/SystemClock.cs
@@ -3,7 +3,7 @@
using System;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
/// <summary>
/// Provides access to the normal system clock.
View
2 ...r.Kestrel/Infrastructure/TaskUtilities.cs → .../Internal/Infrastructure/TaskUtilities.cs
@@ -4,7 +4,7 @@
using System.Threading;
using System.Threading.Tasks;
-namespace Microsoft.AspNetCore.Server.Kestrel.Infrastructure
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure
{
public static class TaskUtilities
{
View
6 ...spNetCore.Server.Kestrel/KestrelEngine.cs → ....Server.Kestrel/Internal/KestrelEngine.cs
@@ -4,10 +4,10 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
-namespace Microsoft.AspNetCore.Server.Kestrel
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal
{
public class KestrelEngine : ServiceContext, IDisposable
{
View
2 ...etCore.Server.Kestrel/Networking/Libuv.cs → ...rver.Kestrel/Internal/Networking/Libuv.cs
@@ -4,7 +4,7 @@
using System;
using System.Runtime.InteropServices;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
public class Libuv
{
View
3 ...Server.Kestrel/Networking/PlatformApis.cs → ...strel/Internal/Networking/PlatformApis.cs
@@ -1,10 +1,9 @@
// 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.
-using System;
using System.Runtime.InteropServices;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
public static class PlatformApis
{
View
2 ...ore.Server.Kestrel/Networking/SockAddr.cs → ...r.Kestrel/Internal/Networking/SockAddr.cs
@@ -4,7 +4,7 @@
using System;
using System.Net;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
public struct SockAddr
{
View
4 ...erver.Kestrel/Networking/UvAsyncHandle.cs → ...trel/Internal/Networking/UvAsyncHandle.cs
@@ -4,9 +4,9 @@
using System;
using System.Diagnostics;
using System.Threading;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
public class UvAsyncHandle : UvHandle
{
View
4 ...er.Kestrel/Networking/UvConnectRequest.cs → ...l/Internal/Networking/UvConnectRequest.cs
@@ -2,10 +2,10 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
/// <summary>
/// Summary description for UvWriteRequest
View
2 ....Server.Kestrel/Networking/UvException.cs → ...estrel/Internal/Networking/UvException.cs
@@ -3,7 +3,7 @@
using System;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
public class UvException : Exception
{
View
4 ...ore.Server.Kestrel/Networking/UvHandle.cs → ...r.Kestrel/Internal/Networking/UvHandle.cs
@@ -4,9 +4,9 @@
using System;
using System.Diagnostics;
using System.Threading;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
public abstract class UvHandle : UvMemory
{
View
4 ...Server.Kestrel/Networking/UvLoopHandle.cs → ...strel/Internal/Networking/UvLoopHandle.cs
@@ -3,9 +3,9 @@
using System;
using System.Threading;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
public class UvLoopHandle : UvMemory
{
View
4 ...ore.Server.Kestrel/Networking/UvMemory.cs → ...r.Kestrel/Internal/Networking/UvMemory.cs
@@ -5,9 +5,9 @@
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Threading;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
/// <summary>
/// Summary description for UvMemory
View
5 ...Server.Kestrel/Networking/UvPipeHandle.cs → ...strel/Internal/Networking/UvPipeHandle.cs
@@ -2,10 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
-using System.Net;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
public class UvPipeHandle : UvStreamHandle
{
View
4 ...re.Server.Kestrel/Networking/UvRequest.cs → ....Kestrel/Internal/Networking/UvRequest.cs
@@ -1,8 +1,8 @@
using System;
using System.Runtime.InteropServices;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
public class UvRequest : UvMemory
{
View
4 ...erver.Kestrel/Networking/UvShutdownReq.cs → ...trel/Internal/Networking/UvShutdownReq.cs
@@ -2,9 +2,9 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
/// <summary>
/// Summary description for UvShutdownRequest
View
6 ...rver.Kestrel/Networking/UvStreamHandle.cs → ...rel/Internal/Networking/UvStreamHandle.cs
@@ -3,11 +3,11 @@
using System;
using System.Runtime.InteropServices;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
public abstract class UvStreamHandle : UvHandle
{
View
4 ....Server.Kestrel/Networking/UvTcpHandle.cs → ...estrel/Internal/Networking/UvTcpHandle.cs
@@ -4,9 +4,9 @@
using System;
using System.Net;
using System.Runtime.InteropServices;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
public class UvTcpHandle : UvStreamHandle
{
View
4 ...e.Server.Kestrel/Networking/UvWriteReq.cs → ...Kestrel/Internal/Networking/UvWriteReq.cs
@@ -4,10 +4,10 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.Extensions.Logging;
-namespace Microsoft.AspNetCore.Server.Kestrel.Networking
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Networking
{
/// <summary>
/// Summary description for UvWriteRequest
View
6 ...pNetCore.Server.Kestrel/ServiceContext.cs → ...Server.Kestrel/Internal/ServiceContext.cs
@@ -3,10 +3,10 @@
using System;
using Microsoft.AspNetCore.Hosting;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
-namespace Microsoft.AspNetCore.Server.Kestrel
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal
{
public class ServiceContext
{
View
8 src/Microsoft.AspNetCore.Server.Kestrel/KestrelServer.cs
@@ -4,15 +4,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Net;
using System.Reflection;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Hosting.Server;
using Microsoft.AspNetCore.Hosting.Server.Features;
using Microsoft.AspNetCore.Http.Features;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
View
3 src/Microsoft.AspNetCore.Server.Kestrel/ServerAddress.cs
@@ -4,8 +4,7 @@
using System;
using System.Diagnostics;
using System.Globalization;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
namespace Microsoft.AspNetCore.Server.Kestrel
{
View
2 test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/AddressRegistrationTests.cs
@@ -12,7 +12,7 @@
using Microsoft.AspNetCore.Hosting.Server.Features;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.AspNetCore.Testing.xunit;
using Xunit;
View
5 test/Microsoft.AspNetCore.Server.KestrelTests/AsciiDecoding.cs
@@ -1,10 +1,9 @@
// 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.
-using System;
using System.Linq;
-using Microsoft.AspNetCore.Server.Kestrel.Exceptions;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/BadHttpRequestTests.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/ChunkWriterTests.cs
@@ -3,7 +3,7 @@
using System.Linq;
using System.Text;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
9 test/Microsoft.AspNetCore.Server.KestrelTests/ConnectionTests.cs
@@ -1,9 +1,10 @@
using System.Threading;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.AspNetCore.Server.KestrelTests.TestHelpers;
using Xunit;
@@ -15,7 +16,7 @@ public class ConnectionTests
public void DoesNotEndConnectionOnZeroRead()
{
var mockLibuv = new MockLibuv();
-
+
using (var memory = new MemoryPool())
using (var engine = new KestrelEngine(mockLibuv, new TestServiceContext()))
{
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/CreateIPEndpointTests.cs
@@ -3,7 +3,7 @@
using System.Net;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
4 test/Microsoft.AspNetCore.Server.KestrelTests/DateHeaderValueManagerTests.cs
@@ -3,8 +3,8 @@
using System;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.AspNetCore.Server.KestrelTests.TestHelpers;
using Xunit;
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/DefaultHeaderTests.cs
@@ -4,7 +4,7 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
5 test/Microsoft.AspNetCore.Server.KestrelTests/EngineTests.cs
@@ -11,8 +11,9 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
4 test/Microsoft.AspNetCore.Server.KestrelTests/FrameRequestHeadersTests.cs
@@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using System.Text;
-using Microsoft.AspNetCore.Server.Kestrel.Exceptions;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
+using Microsoft.AspNetCore.Server.Kestrel;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
using Microsoft.Extensions.Primitives;
using Xunit;
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/FrameRequestStreamTests.cs
@@ -4,7 +4,7 @@
using System;
using System.IO;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/FrameResponseHeadersTests.cs
@@ -5,7 +5,7 @@
using System.Collections.Generic;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
using Microsoft.Extensions.Primitives;
using Xunit;
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/FrameResponseStreamTests.cs
@@ -4,7 +4,7 @@
using System;
using System.IO;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
using Microsoft.AspNetCore.Server.KestrelTests.TestHelpers;
using Xunit;
View
8 test/Microsoft.AspNetCore.Server.KestrelTests/FrameTests.cs
@@ -2,14 +2,12 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
-using System.Linq;
using System.Text;
-using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Exceptions;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.AspNetCore.Server.KestrelTests.TestHelpers;
using Xunit;
View
6 test/Microsoft.AspNetCore.Server.KestrelTests/HttpsConnectionFilterTests.cs
@@ -16,7 +16,7 @@
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Server.Kestrel.Filter;
using Microsoft.AspNetCore.Server.Kestrel.Https;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.AspNetCore.Testing.xunit;
using Xunit;
@@ -32,10 +32,10 @@ public class HttpsConnectionFilterTests : IDisposable
#if NET451
static HttpsConnectionFilterTests()
{
- // SecurityProtocolType values below not available in Mono < 4.3
+ // SecurityProtocolType values below not available in Mono < 4.3
const int SecurityProtocolTypeTls11 = 768;
const int SecurityProtocolTypeTls12 = 3072;
- ServicePointManager.SecurityProtocol |= (SecurityProtocolType)(SecurityProtocolTypeTls12 | SecurityProtocolTypeTls11);
+ ServicePointManager.SecurityProtocol |= (SecurityProtocolType)(SecurityProtocolTypeTls12 | SecurityProtocolTypeTls11);
}
#endif
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/KestrelServerTests.cs
@@ -6,7 +6,7 @@
using Microsoft.AspNetCore.Hosting.Server.Features;
using Microsoft.AspNetCore.Http.Features;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.AspNetCore.Server.Kestrel.Internal;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/LoggingThreadPoolTests.cs
@@ -6,7 +6,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/MemoryPoolBlockTests.cs
@@ -1,6 +1,6 @@
using System;
using System.Linq;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using System.Numerics;
using Xunit;
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/MemoryPoolExtensions.cs
@@ -1,4 +1,4 @@
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
namespace Microsoft.AspNetCore.Server.KestrelTests
{
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/MemoryPoolIteratorTests.cs
@@ -1,6 +1,6 @@
using System;
using System.Linq;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using System.Numerics;
using Xunit;
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/MessageBodyTests.cs
@@ -4,7 +4,7 @@
using System;
using System.Text;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
5 test/Microsoft.AspNetCore.Server.KestrelTests/MultipleLoopTests.cs
@@ -6,8 +6,9 @@
using System.Runtime.InteropServices;
using System.Threading;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
5 test/Microsoft.AspNetCore.Server.KestrelTests/NetworkingTests.cs
@@ -7,8 +7,9 @@
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/PathNormalizerTests.cs
@@ -3,7 +3,7 @@
using System;
using System.Text;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
5 test/Microsoft.AspNetCore.Server.KestrelTests/SocketInputTests.cs
@@ -4,8 +4,9 @@
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
7 test/Microsoft.AspNetCore.Server.KestrelTests/SocketOutputTests.cs
@@ -6,9 +6,10 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Microsoft.AspNetCore.Server.KestrelTests.TestHelpers;
using Xunit;
View
3 test/Microsoft.AspNetCore.Server.KestrelTests/StreamSocketOutputTests.cs
@@ -4,7 +4,8 @@
using System;
using System.IO;
using Microsoft.AspNetCore.Server.Kestrel.Filter;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Filter.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/TestConnection.cs
@@ -8,7 +8,7 @@
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/MockConnection.cs
@@ -4,7 +4,7 @@
using System;
using System.Threading;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
namespace Microsoft.AspNetCore.Server.KestrelTests.TestHelpers
{
View
4 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/MockFrameControl.cs
@@ -4,8 +4,8 @@
using System;
using System.Threading;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
namespace Microsoft.AspNetCore.Server.KestrelTests.TestHelpers
{
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/MockLibuv.cs
@@ -1,6 +1,6 @@
using System;
using System.Threading;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
namespace Microsoft.AspNetCore.Server.KestrelTests.TestHelpers
{
View
4 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/MockSocket.cs
@@ -1,6 +1,6 @@
using System;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
-using Microsoft.AspNetCore.Server.Kestrel.Networking;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Networking;
namespace Microsoft.AspNetCore.Server.KestrelTests.TestHelpers
{
View
4 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/MockSocketOuptut.cs
@@ -4,8 +4,8 @@
using System;
using System.Threading;
using System.Threading.Tasks;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
namespace Microsoft.AspNetCore.Server.KestrelTests.TestHelpers
{
View
2 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/MockSystemClock.cs
@@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
namespace Microsoft.AspNetCore.Server.KestrelTests.TestHelpers
{
View
3 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/PassThroughConnectionFilter.cs
@@ -3,7 +3,8 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Server.Kestrel.Filter;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Filter.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
namespace Microsoft.AspNetCore.Server.KestrelTests
{
View
1 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/TestApplicationErrorLogger.cs
@@ -3,6 +3,7 @@
using System;
using Microsoft.AspNetCore.Server.Kestrel;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
3 test/Microsoft.AspNetCore.Server.KestrelTests/TestHelpers/TestKestrelTrace.cs
@@ -1,5 +1,4 @@
-using System;
-using Microsoft.AspNetCore.Server.Kestrel;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
5 test/Microsoft.AspNetCore.Server.KestrelTests/TestInput.cs
@@ -5,8 +5,9 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
namespace Microsoft.AspNetCore.Server.KestrelTests
{
View
3 test/Microsoft.AspNetCore.Server.KestrelTests/TestServer.cs
@@ -4,7 +4,8 @@
using System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Server.Kestrel;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
namespace Microsoft.AspNetCore.Server.KestrelTests
{
View
5 test/Microsoft.AspNetCore.Server.KestrelTests/TestServiceContext.cs
@@ -5,8 +5,9 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Server.Kestrel;
using Microsoft.AspNetCore.Server.Kestrel.Filter;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.AspNetCore.Server.KestrelTests.TestHelpers;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
4 test/Microsoft.AspNetCore.Server.KestrelTests/UrlPathDecoder.cs
@@ -3,8 +3,8 @@
using System;
using System.Linq;
-using Microsoft.AspNetCore.Server.Kestrel.Http;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Http;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Xunit;
namespace Microsoft.AspNetCore.Server.KestrelTests
View
2 tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/FrameFeatureCollection.cs
@@ -66,7 +66,7 @@ public static string GeneratedFile()
using System;
using System.Collections.Generic;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{{
public partial class Frame
{{{Each(allFeatures, feature => $@"
View
5 tools/Microsoft.AspNetCore.Server.Kestrel.GeneratedCode/KnownHeaders.cs
@@ -199,11 +199,10 @@ public static string GeneratedFile()
return $@"
using System;
using System.Collections.Generic;
-using Microsoft.AspNetCore.Server.Kestrel.Exceptions;
-using Microsoft.AspNetCore.Server.Kestrel.Infrastructure;
+using Microsoft.AspNetCore.Server.Kestrel.Internal.Infrastructure;
using Microsoft.Extensions.Primitives;
-namespace Microsoft.AspNetCore.Server.Kestrel.Http
+namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
{{
{Each(loops, loop => $@"
public partial class {loop.ClassName}

0 comments on commit 09f5be1

Please sign in to comment.