From 31513df5ffe3366fb72884760d60338afa4da8dd Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Tue, 8 Nov 2016 19:54:19 -0500 Subject: [PATCH] readme --- Readme.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Readme.md diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..3442bc0 --- /dev/null +++ b/Readme.md @@ -0,0 +1,34 @@ +## UriBuilder.Fluent + +This places extension methods over System.UriBuilder to help deal with query string parameters, and create more of a fluent interface. Unlike other projects this builds ontop of trusty UriBuilder, and does not use custom Uri generators, or have outside dependencies. + +This lets you do things like + + +```csharp + +new UriBuilder() + .WithParameter("awesome", "yodawg") + .WithParameter("fun", ["cool", "yay"]) + .WithHost("awesome.com") + .WithPathSegment("seg") + .UseHttps() + .ToString() + + + +``` +result: `https://awesome.com/seg?awesome=yodawg&fun=cool,yay` + +or + +```csharp + +new UriBuilder("https://awesome.com/yo) + .WithParameter("id", "5") + .ToString(); + + + +``` +result: `https://awesome.com/yo?id=5` \ No newline at end of file