KestrelHttpServer
KestrelHttpServer copied to clipboard
chunked transfer encoding response
Why does Kestrel always add transfer-encoding: "chunked" response header? IIS doesn't do it. Is this by design or a bug?
By design. If the application doesn't specify a content-length then the server must either buffer the content or send it as chunked. ASP.NET Core servers do not buffer the full content. IIS has some buffering quirks with response compression, but otherwise it doesn't buffer responses either.
Thanks