Skip to content
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
@benaadams

Description

@benaadams

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:

content-length

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions