Skip to content

Commit b73be24

Browse files
authored
Multiple style fixes (#401)
1 parent 319befa commit b73be24

34 files changed

+119
-235
lines changed

nanoFramework.System.Net.Http/Http/ByteArrayContent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class ByteArrayContent : HttpContent
2424
/// <exception cref="ArgumentNullException">The <paramref name="content"/> parameter is <see langword="null"/>.</exception>
2525
public ByteArrayContent(byte[] content)
2626
{
27-
if(content is null)
27+
if (content is null)
2828
{
2929
throw new ArgumentNullException();
3030
}
@@ -71,7 +71,7 @@ public ByteArrayContent(
7171
int offset,
7272
int count)
7373
{
74-
if(content is null)
74+
if (content is null)
7575
{
7676
throw new ArgumentNullException();
7777
}

nanoFramework.System.Net.Http/Http/ClientCertificateOption.cs

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

77
namespace System.Net.Http
88
{
9-
/// <summary>
10-
/// Specifies how client certificates are provided.
11-
/// </summary>
12-
public enum ClientCertificateOption
13-
{
9+
/// <summary>
10+
/// Specifies how client certificates are provided.
11+
/// </summary>
12+
public enum ClientCertificateOption
13+
{
1414
/// <summary>
1515
/// The application manually provides the client certificates to the WebRequestHandler. This value is the default.
1616
/// </summary>
@@ -20,5 +20,5 @@ public enum ClientCertificateOption
2020
/// The <see cref="HttpClientHandler"/> will attempt to provide all available client certificates automatically.
2121
/// </summary>
2222
Automatic
23-
}
23+
}
2424
}

nanoFramework.System.Net.Http/Http/HttpClient.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using System.Net.Http.Headers;
99
using System.Net.Security;
1010
using System.Security.Cryptography.X509Certificates;
11-
using System.Threading;
1211

1312
namespace System.Net.Http
1413
{
@@ -470,4 +469,3 @@ private void CheckDisposed()
470469
#endregion
471470
}
472471
}
473-

nanoFramework.System.Net.Http/Http/HttpMethod.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
namespace System.Net.Http
1+
//
2+
// Copyright (c) .NET Foundation and Contributors
3+
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
4+
// See LICENSE file in the project root for full license information.
5+
//
6+
7+
namespace System.Net.Http
28
{
39
/// <summary>
410
/// A helper class for retrieving and comparing standard HTTP methods and for creating new HTTP methods.

nanoFramework.System.Net.Http/Http/System.Net.Http.Constants.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ internal class HttpConstants
1919
internal const int maxHTTPLineLength = 4000;
2020
}
2121
}
22-
23-

nanoFramework.System.Net.Http/Http/System.Net.HttpListener.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
namespace System.Net
88
{
99
using System.Collections;
10+
using System.Diagnostics;
1011
using System.Net.Security;
1112
using System.Net.Sockets;
1213
using System.Security.Cryptography.X509Certificates;
1314
using System.Threading;
14-
using System.Diagnostics;
1515

1616
/// <summary>
1717
/// Provides a simple, programmatically controlled HTTP protocol listener.
@@ -697,5 +697,3 @@ public X509Certificate HttpsCert
697697
}
698698
}
699699
}
700-
701-

nanoFramework.System.Net.Http/Http/System.Net.HttpListenerContext.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,5 +201,3 @@ public void Close()
201201
}
202202
}
203203
}
204-
205-

nanoFramework.System.Net.Http/Http/System.Net.HttpListenerRequest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,5 @@ public string[] UserLanguages
445445
{
446446
get { return m_httpRequestHeaders.GetValues(HttpKnownHeaderNames.AcceptLanguage); }
447447
}
448-
449448
}
450449
}
451-
452-

nanoFramework.System.Net.Http/Http/System.Net.HttpListenerResponse.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ private void PrepareHeaders()
145145
m_httpResponseHeaders.AddWithoutValidate(HttpKnownHeaderNames.Location, m_redirectLocation);
146146
m_ResponseStatusCode = (int)HttpStatusCode.Redirect;
147147
}
148-
149-
if (m_sendChunked)
148+
149+
if (m_sendChunked)
150150
{
151151
m_httpResponseHeaders.AddWithoutValidate(HttpKnownHeaderNames.TransferEncoding, "chunked");
152152
}
@@ -538,8 +538,5 @@ internal static string GetStatusDescription(int code)
538538

539539
return "";
540540
}
541-
542541
}
543542
}
544-
545-

nanoFramework.System.Net.Http/Http/System.Net.HttpStatusCode.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
// See LICENSE file in the project root for full license information.
55
//
66

7-
87
namespace System.Net
98
{
10-
119
// Any int can be cast to a HttpStatusCode to allow checking for non http1.1
1210
// codes.
1311

@@ -24,7 +22,6 @@ namespace System.Net
2422
/// </remarks>
2523
public enum HttpStatusCode
2624
{
27-
2825
/// Informational -- 1xx.
2926
/// <summary>Equivalent to HTTP status 100. Indicates that the client can continue with its
3027
/// request.</summary>
@@ -230,7 +227,7 @@ public enum HttpStatusCode
230227
/// requested HTTP version is not supported by the server.</summary>
231228
HttpVersionNotSupported = 505,
232229

233-
}; // enum HttpStatusCode
230+
};
234231

235232
/// <summary>
236233
/// Range for the HTTP status codes.
@@ -295,6 +292,4 @@ 10.5.4 503 Service Unavailable ..................................70
295292
10.5.5 504 Gateway Timeout ......................................71
296293
10.5.6 505 HTTP Version Not Supported ...........................71
297294
*/
298-
} // namespace System.Net
299-
300-
295+
}

0 commit comments

Comments
 (0)