PyLibSharp 1.1.0

Suggested Alternatives

PyLibSharp.Requests

Additional Details

我们将使用新的包名继续更新,请下载PyLibSharp.Requests,谢谢;
另外我们将开发PyLibSharp的其他类库。

There is a newer version of this package available.
See the version list below for details.
dotnet add package PyLibSharp --version 1.1.0                
NuGet\Install-Package PyLibSharp -Version 1.1.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="PyLibSharp" Version="1.1.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PyLibSharp --version 1.1.0                
#r "nuget: PyLibSharp, 1.1.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 PyLibSharp as a Cake Addin
#addin nuget:?package=PyLibSharp&version=1.1.0

// Install PyLibSharp as a Cake Tool
#tool nuget:?package=PyLibSharp&version=1.1.0                

简单用法: ReqResponse return=Requests.Get("网址",参数对象ReqParams); ReqResponse return=Requests.Post("网址",参数对象ReqParams);

ReqParams中可以设置Header等,若要自定义Header,请使用CustomHeader;无论是Get还是Post,参数最好通过Params进行传递。 可以在参数中设置现存的CookieContainer,也可以利用请求返回的ReqResponse对象中的Cookies获取到。 ReqResponse中: RawStream参数是存有响应的原始字节流 Text参数是根据Encode参数自动解码的字符串,可以通过手动修改Encode的值,让Text以不同编码进行解码。 Json函数可以直接获取按Json格式解码响应后的JObject对象。

目前还在早期开发阶段,文档和代码注释会在项目成熟后补齐。

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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

初始