Skip to content

Commit bec2f23

Browse files
benaadamseerhardt
andauthored
Apply suggestions from code review
Co-authored-by: Eric Erhardt <[email protected]>
1 parent ed54185 commit bec2f23

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Diff for: frameworks/CSharp/aspnetcore/PlatformBenchmarks/BenchmarkApplication.Fortunes.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public partial class BenchmarkApplication
1414
{
1515
private static ReadOnlySpan<byte> _fortunesPreamble =>
1616
"HTTP/1.1 200 OK\r\n"u8 +
17-
"Server: K"u8 + "\r\n"u8 +
18-
"Content-Type: text/html; charset=UTF-8"u8 + "\r\n"u8 +
17+
"Server: K\r\n"u8 +
18+
"Content-Type: text/html; charset=UTF-8\r\n"u8 +
1919
"Content-Length: "u8;
2020

2121
private async Task Fortunes(PipeWriter pipeWriter)

Diff for: frameworks/CSharp/aspnetcore/PlatformBenchmarks/BenchmarkApplication.Json.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public partial class BenchmarkApplication
1212

1313
private static ReadOnlySpan<byte> _jsonPreamble =>
1414
"HTTP/1.1 200 OK\r\n"u8 +
15-
"Server: K"u8 + "\r\n"u8 +
16-
"Content-Type: application/json"u8 + "\r\n"u8 +
15+
"Server: K\r\n"u8 +
16+
"Content-Type: application/json\r\n"u8 +
1717
"Content-Length: 27"u8;
1818

1919
private static void Json(ref BufferWriter<WriterAdapter> writer, IBufferWriter<byte> bodyWriter)

Diff for: frameworks/CSharp/aspnetcore/PlatformBenchmarks/BenchmarkApplication.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ namespace PlatformBenchmarks;
1414

1515
public partial class BenchmarkApplication
1616
{
17-
private static ReadOnlySpan<byte> _applicationName => "Kestrel Platform-Level Application"u8;
18-
public static ReadOnlySpan<byte> ApplicationName => _applicationName;
17+
public static ReadOnlySpan<byte> ApplicationName => "Kestrel Platform-Level Application"u8;
1918

2019
private static ReadOnlySpan<byte> _crlf => "\r\n"u8;
2120
private static ReadOnlySpan<byte> _eoh => "\r\n\r\n"u8; // End Of Headers

0 commit comments

Comments
 (0)