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.

How to work with Uri and QueryString in ASP.NET 5 #288

@evil-shrike

Description

@evil-shrike

Previously in old MVC and WebApi Request types (HttpRequestBase and HttpRequestMessage) had property QueryString of type NameValueCollection. It represented key-value pairs in request's query string. Now in AspNet5 HttpRequest has QueryString property which type is QueryString struct. But it's just a wrapper around a string value. It doesn't have values, indexer, IEnumerable. Nothing.

How is it supposed to work with values in QS?

Also similar question about working with URI. Previously we had HttpRequestBase.Url and HttpRequestMessage.RequestUri of type System.Uri. Now just strings (PathBase, Path, QueryString props in HttpRequest). What's wrong with System.Uri? Why is it abandoned?

Another type I'm missing is HttpUtility. Especially UrlEncode/UrlDecode methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions