Info
Version: | 1.4.1 |
Author(s): | Stratos |
Last Update: | Saturday, January 23, 2021 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/StratosBlue/Cuture.Http.git |
NuGet Url: | https://www.nuget.org/packages/Cuture.Http |
Install
Install-Package Cuture.Http
dotnet add package Cuture.Http
paket add Cuture.Http
Cuture.Http Download (Unzip the "nupkg" after downloading)
Dependencies
.NETStandard 2.0
- Newtonsoft.Json(>= 12.0.3)
- System.Text.Encoding.CodePages(>= 5.0.0)
- Newtonsoft.Json(>= 12.0.3)
- Newtonsoft.Json(>= 12.0.3)
- System.Text.Encoding.CodePages(>= 5.0.0)
Tags
Example Usage:
var url = "http://www.domain.com/api";
var response = await url.ToHttpRequest()
.UseUserAgent(UserAgents.FireFox)
.AddHeader("header1", "header1Value")
.UsePost()
.TimeOut(3000)
.WithCancellationToken(token)
.WithFormContent($"key={value.UrlEncode()}")
//Some Other Options
.TryGetAsStringAsync();.