

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
12345# System.Net.Http — Folder-Specific Guidance67## Connection Pooling and Lifecycle89- SocketsHttpHandler pools connections per host/port/scheme — respect pool limits and idle timeouts when modifying connection management10- Connection lifetime and idle timeout logic must handle races between pool cleanup and new request acquisition11- When modifying connection pooling, ensure HTTP/1.1 and HTTP/2 paths are both updated — they have distinct pool semantics12- Connection state transitions (idle → active → draining → disposed) must be atomic and thread-safe1314## HTTP Protocol Handling1516- HTTP/2 multiplexes streams over a single connection — changes to stream management must not starve other streams or deadlock flow control windows17- HTTP/2 flow control (connection-level and stream-level) windows must be updated correctly; failing to send WINDOW_UPDATE causes hangs18- Header parsing must handle folded headers, multiple values for the same header name, and case-insensitive comparison per RFC 911019- Ensure chunked transfer encoding, content-length validation, and trailer handling follow HTTP/1.1 and HTTP/2 specs exactly20- Redirect handling must not follow redirects across security boundaries (HTTPS → HTTP) unless explicitly configured2122## Request/Response Lifecycle2324- HttpContent must be disposed after the response is consumed — leaking content streams holds connections open in the pool25- HttpResponseMessage owns the response stream; disposing it before reading content causes ObjectDisposedException26- Request headers vs content headers have distinct allowed sets — do not allow content headers on requests without a body27- Cancellation tokens must propagate through the entire send pipeline including DNS, connect, TLS handshake, and response read2829## HttpContent and Serialization3031- Avoid buffering entire request/response bodies in memory — prefer streaming for large payloads32- HttpContent.ReadAsStreamAsync should return the underlying stream without copying when possible33- System.Net.Http.Json extensions must handle JsonSerializer cancellation and disposal correctly34- Serialization errors must surface as HttpRequestException or JsonException, not raw IO exceptions3536## WinHttpHandler3738- WinHttpHandler delegates to the Windows WinHTTP API — changes must verify behavior on all supported Windows versions39- Error codes from WinHTTP must be mapped to appropriate HttpRequestException with inner Win32Exception40- WinHTTP callback state must be pinned for the duration of the async operation to prevent GC collection4142## Performance4344- Avoid allocating strings for well-known header names and values — use the static KnownHeaders table45- Header value parsing should use Span-based APIs to avoid substring allocations46- Pool HTTP/2 frame buffers and avoid per-frame allocations on the read/write loops4748## Diagnostics4950- Use NetEventSource for tracing request lifecycle events (send, redirect, retry, failure)51- Never log request/response bodies, Authorization headers, cookies, or credentials in trace output52
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| dotnet/runtime.github/copilot-instructions.md · 18k | Copilot instructions | buildteststylearch+2 | 78/100 | 14 days ago | |
| dotnet/runtime.github/instructions/cdac.instructions.md · 18k | Copilot instructions | typesgitapidocs | 52/100 | 14 days ago | |
| dotnet/runtime.github/instructions/compression.instructions.md · 18k | Copilot instructions | testlint-formatstylesecurity+1 | 60/100 | 14 days ago | |
| dotnet/runtime.github/instructions/conventions.instructions.md · 18k | Copilot instructions | stylearchagent-behaviourdocs | 56/100 | 7 days ago | |
| dotnet/runtime.github/instructions/core-runtime.instructions.md · 18k | Copilot instructions | styleperformance | 43/100 | 14 days ago | |
| dotnet/runtime.github/instructions/csharp.instructions.md · 18k | Copilot instructions | lint-formatstylearchsecurity+3 | 59/100 | 7 days ago | |
| dotnet/runtime.github/instructions/extensions-caching.instructions.md · 18k | Copilot instructions | styleperformanceagent-behaviour | 48/100 | 14 days ago | |
| dotnet/runtime.github/instructions/extensions-common.instructions.md · 18k | Copilot instructions | styledependencies | 48/100 | 14 days ago | |
| dotnet/runtime.github/instructions/extensions-configuration.instructions.md · 18k | Copilot instructions | no sections | 44/100 | 14 days ago | |
| dotnet/runtime.github/instructions/extensions-di.instructions.md · 18k | Copilot instructions | teststyletesting-strategy | 52/100 | 14 days ago | |
| dotnet/runtime.github/instructions/extensions-hosting.instructions.md · 18k | Copilot instructions | teststyleagent-behaviour | 52/100 | 14 days ago | |
| dotnet/runtime.github/instructions/extensions-logging.instructions.md · 18k | Copilot instructions | securityperformance | 44/100 | 14 days ago | |
| dotnet/runtime.github/instructions/extensions-options.instructions.md · 18k | Copilot instructions | style | 48/100 | 14 days ago | |
| dotnet/runtime.github/instructions/illink.instructions.md · 18k | Copilot instructions | no sections | 16/100 | 7 days ago | |
| dotnet/runtime.github/instructions/jit.instructions.md · 18k | Copilot instructions | buildgit | 29/100 | 14 days ago | |
| dotnet/runtime.github/instructions/system-net-common.instructions.md · 18k | Copilot instructions | styledependenciesapi | 48/100 | 14 days ago | |
| dotnet/runtime.github/instructions/system-net-interop.instructions.md · 18k | Copilot instructions | stylearchperformance | 56/100 | 14 days ago | |
| dotnet/runtime.github/instructions/system-net-quic.instructions.md · 18k | Copilot instructions | teststyleperformance | 56/100 | 14 days ago | |
| dotnet/runtime.github/instructions/system-net-sockets.instructions.md · 18k | Copilot instructions | styleagent-behaviour | 48/100 | 14 days ago | |
| dotnet/runtime.github/instructions/system-security-cryptography.instructions.md · 18k | Copilot instructions | stylesecurity | 48/100 | 8 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 14 days ago | |
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 14 days ago | |
| dotnet/roslyn.github/instructions/Compiler.instructions.md · 21k | Copilot instructions | buildteststylearch+3 | 99/100 | 7 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 14 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 7 days ago | |
| nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32 | Copilot instructions | setupbuildtestlint-format+11 | 96/100 | 14 days ago | |
| thangaram611/second-brain.github/copilot-instructions.md · 0 | Copilot instructions | setupteststylearch+4 | 96/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/dotnet-runtime-github-instructions-system-net-http-instructions)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.
Directory