Skip to content

An open source project based on the HttpClient. You only need to define the c# interface and modify the related features to invoke the client library of the remote http interface asynchronously.

License

Notifications You must be signed in to change notification settings

dotnetcore/WebApiClient

Repository files navigation

WebApiClient                 

集高性能高可扩展性于一体的声明式http客户端库。

功能特性

语义化声明

客户端的开发,只需语义化的声明接口。

多样序列化

支持json、xml、form等序列化和其它自定义序列化方式。

裁剪与AOT

支持.net8的代码完全裁剪和AOT发布。

面向切面

支持多种拦截器、过滤器、日志、重试、缓存自定义等功能。

语法分析

提供接口声明的语法分析与提示,帮助开发者声明接口时避免使用不当的语法。

快速接入

支持OAuth2与token管理扩展包,方便实现身份认证和授权。

自动代码

支持将本地或远程OpenApi文档解析生成WebApiClientCore接口代码的dotnet tool,简化接口声明的工作量

性能强劲

BenchmarkDotNet中,各种请求下2.X倍性能领先于同类产品refit

文档支持

https://webapiclient.github.io/

About

An open source project based on the HttpClient. You only need to define the c# interface and modify the related features to invoke the client library of the remote http interface asynchronously.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages