Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,9 @@ An <xref:System.Net.HttpListener> can require client authentication. You can eit
The <xref:System.Net.HttpListener> class is built on top of `HTTP.sys`, which is the kernel mode listener that handles all HTTP traffic for Windows.
`HTTP.sys` provides connection management, bandwidth throttling, and web server logging.
Use the [HttpCfg.exe](/windows/win32/http/httpcfg-exe) tool to add SSL certificates.

Starting in .NET 11, the Windows `HTTP.sys` implementation of <xref:System.Net.HttpListener> supports enabling kernel-level response buffering. When enabled, response data is buffered by `HTTP.sys` before being sent to the client, which can improve throughput for high-latency connections. This can be enabled by calling the <xref:System.AppContext.SetSwitch%2A?displayProperty=nameWithType> method as follows:

```csharp
AppContext.SetSwitch("System.Net.HttpListener.EnableKernelResponseBuffering", true);
```
Loading