Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HttpHeaders.NonValidated #53555

Merged
merged 1 commit into from
Jun 6, 2021

Commits on Jun 4, 2021

  1. Add HttpHeaders.NonValidated

    This adds an HttpHeaders.NonValidated property, which returns a type that provides a non-validating / non-parsing / non-allocating view of headers in the collection.  Querying the resulting collection does not force parsing or validation on the contents of the headers, handing back exactly the raw data that it contains; if a header doesn't contain a raw value but instead contains an already parsed value, a string representation of that header value(s) is returned.  When using the strongly-typed members, querying and enumeration is allocation-free, unless strings need to be created to represent already parsed values.
    stephentoub committed Jun 4, 2021
    Configuration menu
    Copy the full SHA
    b2eb92d View commit details
    Browse the repository at this point in the history