This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
Expose Content-Length in IHttpResponseFeature #407
Closed
Description
At the moment accessing content-length goes to string and back through parsing and the header collection. It is a long?
on Response.
The string transitions are alloc heavy for 2000 requests at 108k meaning 54 Meg per 1M requests:
What I'd much prefer is to have the long?
directly so I can output that straight to bytes without going via string or allocating.