aspnet / HttpAbstractions

[Archived] HTTP abstractions such as HttpRequest, HttpResponse, and HttpContext, as well as common web utilities. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
382 stars 194 forks source link

Add HostString.MatchesAny #998

Closed Tratcher closed 6 years ago

Tratcher commented 6 years ago

https://github.com/aspnet/Home/issues/2863 Add an API useful for matching host names against wildcard patterns. It's static so you can choose not to do HostString's punycode->unicode conversion before matching.

Also reduced a few string allocations by using StringSegments.