/Requests.NET

Fluent C# HTTP client.

Primary LanguageC#MIT LicenseMIT

Build Status

Requests.NET

Fluent C# HTTP client

Examples

HttpBinResponse resp = await Requests.Get("https://httpbin.org/get")
                                     .AuthBasic("user", "pass")
                                     .Parameter("param1", "value1")
                                     .FollowRedirects()
                                     .ToJsonAsync<HttpBinResponse>();
Response resp = await Requests.Post("https://httpbin.org/post")
                              .Form("name1", "value1")
                              .File("file1", File.ReadAllBytes("file.txt"), "file.txt")
                              .ExecuteAsync();