Skip to content

KrystianD/Requests.NET

Repository files navigation

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();

About

Fluent C# HTTP client.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages