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

32 lines
499 B
Markdown

## FluentUriBuilder
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`