xYove 1.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package xYove --version 1.0.3
NuGet\Install-Package xYove -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="xYove" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add xYove --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: xYove, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install xYove as a Cake Addin #addin nuget:?package=xYove&version=1.0.3 // Install xYove as a Cake Tool #tool nuget:?package=xYove&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
xYove HttpClient / .Net Core
This project is a fork of this project - https://github.com/X-rus/xNet
What was done?
- Translated to netstandard2.0
- Added PATCH method
- Added Parsing HTML
- Getting header by key
As well as minor changes for convenience
Nuget: https://www.nuget.org/packages/xYove/
Install-Package xYove -Version 1.0.3
dotnet add package xYove --version 1.0.3
Example
HttpRequest Client = new HttpRequest
{
IgnoreProtocolErrors = true,
Cookies = new CookieDictionary(),
UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
Authorization = $"Bot {Token}" //Add Authorization header
};
Client.HttpProxyClient.Parse("127.0.0.1:8012"), //Connect through HTTP-Proxy
Client.Socks4ProxyClient.Parse("127.0.0.1:8013"), //Connect through SOCKS4-Proxy
Client.Socks5ProxyClient.Parse("127.0.0.1:8014") //Connect through SOCKS5-Proxy
Client["accept-language"] = "ru,en-US;q=0.9,en;q=0.8"; //Add header
Client.Get("http://example.com").ToString(); //Get message body
Client.Raw(HttpMethod.PATCH, "http://example.com", new StringContent("null") //Send PATCH request
{
ContentType = "text/plain" //Default application/json
});
Client.Post("http://example.com", "null", "application/json").Parsing("<h1>", "</h1>"); //Parsing HTML
Client.Get("http://example.com").GetHeader("Content-Type").Value; //Get header
TODO
- Multipart Upload
- Parser JSON
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 1.0
- No dependencies.
-
.NETCoreApp 1.1
- No dependencies.
-
.NETCoreApp 2.0
- No dependencies.
-
.NETCoreApp 2.1
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.5
- No dependencies.
-
.NETFramework 4.6
- No dependencies.
-
.NETFramework 4.7
- No dependencies.
-
.NETFramework 4.7.1
- No dependencies.
-
.NETFramework 4.7.2
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.