xYove 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package xYove --version 1.0.0
NuGet\Install-Package xYove -Version 1.0.0
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.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add xYove --version 1.0.0
#r "nuget: xYove, 1.0.0"
#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.0

// Install xYove as a Cake Tool
#tool nuget:?package=xYove&version=1.0.0

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:

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
Product 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.

This package has 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.

Version Downloads Last updated
1.0.7 717 10/18/2018
1.0.6 779 10/13/2018
1.0.4 1,113 10/12/2018
1.0.3 1,604 10/11/2018
1.0.2 1,591 10/11/2018
1.0.1 1,663 10/11/2018
1.0.0 1,300 10/11/2018