Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 810 Bytes

File metadata and controls

22 lines (12 loc) · 810 Bytes

http-param

Convienience class wrapping access to an HTTP friendly System.Collections.Specialized.NameValueCollection with a fluent interface.

build status

Usage:

var parameters = new HttpParams().Add("key", "value")
                                 .Add("otherKey", "otherValue")

var url = "http://domain.com/controller/action?" + parameters.ToString();

Since the HttpParams wraps System.Collections.Specialized.NameValueCollection the values are automatically URL encoded when ToString() is called..

To install HTTP Params Utility, run the following command in the Package Manager Console

PM> Install-Package HttpParamsUtility