Files
UriBuilder.Fluent/Readme.md
Tommy Parnell 6c8438e84f outside block
2016-11-08 13:39:12 -05:00

499 B

FluentUriBuilder

This lets you do things like


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


new UriBuilder("https://awesome.com/yo)
    .WithParameter("id", "5")
    .ToString();



result: https://awesome.com/yo?id=5