Yyt.Abp.HttpClient 1.0.5

dotnet add package Yyt.Abp.HttpClient --version 1.0.5
                    
NuGet\Install-Package Yyt.Abp.HttpClient -Version 1.0.5
                    
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="Yyt.Abp.HttpClient" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Yyt.Abp.HttpClient" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="Yyt.Abp.HttpClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Yyt.Abp.HttpClient --version 1.0.5
                    
#r "nuget: Yyt.Abp.HttpClient, 1.0.5"
                    
#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.
#:package Yyt.Abp.HttpClient@1.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Yyt.Abp.HttpClient&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=Yyt.Abp.HttpClient&version=1.0.5
                    
Install as a Cake Tool

Yyt.Abp.HttpClient


English Version

Overview

Yyt.Abp.HttpClient is a library that simplifies the encapsulation of HTTP requests for .NET applications. It optimizes common issues such as timeout and resource exhaustion, and supports complex scenarios like file upload. ‌Version 1.0.0 includes the Authorize session attribute; ‌Version 1.0.2 removes the Authorize session attribute; Version 1.0.3 Except for PostNoResAsync and PostMicrServiceNotResAsync, which require manual error handling to retrieve exception details, all other request methods now include built-in fault tolerance with error information in the response;Version 1.0.4 adds a reference to the unified return value object from the Yyt.Abp.ToolKits package, Version 1.0.5 added support for net8. Built with a modular architecture, it integrates seamlessly into your existing projects. Supported by Patrick.Z, this library streamlines repetitive daily development configurations in .NET applications and takes the heavy lifting off your shoulders.

Why Choose Yyt.Abp.HttpClient?

  • Minimal Dependencies: Lightweight design with minimal external dependencies, keeps your project lean and efficient.
  • Secure by Design: Security is prioritized from the design phase to reduce potential vulnerabilities.
  • Highly Extensible: Easy to extend and customize to meet your specific business requirements.
  • Battle-Tested: Proven stable and reliable through validation in multiple production projects.

Code Integration Example

namespace Demo.HttpApi.Host
{
    [DependsOn(
      typeof(VoloHttpClientModule)
    )]
    public class DemoHttpApiHostModule : AbpModule
    {
        // config service & other
    }
}

Code Invocation Example

POST Request Example

public class DemoService:IDemoService
{
	private readonly IHttpClientService _httpClientService;
	public DemoService(IHttpClientService httpClientService)
	{
		_httpClientService=httpClientService;
	}
	 

	public async Task<ServiceResult<string>> AddAsync(AddInput input)
	{
		Dictionary<string, string> dic = new Dictionary<string, string>
		{
			{ "Authorization", "***" }
		};

		var postResult = await _httpClientService.PostAsync(new PostInput()
		{
			Data = requestStr,
			Url = url,
			DicHeaders = dic
		});
	}

}



Chinese Version

概述

Yyt.Abp.HttpClient 提供了简化 .Net 程序实现封装 Http 请求的功能,优化超时资源耗尽问题,支持文件上传等复杂功能。1.0.0 包含authorize会话特性,1.0.2 移除authorize会话特性,1.0.3除了PostNoResAsync、PostMicrServiceNotResAsync请求方法需要自行容错获取异常信息,其他请求增加容错信息返回,1.0.4增加引用Yyt.Abp.ToolKits包的统一返回值对象,Version 1.0.5 增加了对net8的支持。代码采用了 Module 模块化设计,能无缝集成到项目中。该库由 Patrick.Z 提供支持,简化了 .Net 应用程序中的日常开发配置工作,为您分担繁重的工作。

为什么选择 Yyt.Abp.HttpClient?

  • 极少依赖:轻量级设计,外部依赖少,保持项目精简高效
  • 设计安全:从设计阶段就优先考虑安全性,减少潜在漏洞
  • 可扩展定制:易于扩展和定制,满足特定业务需求
  • 久经沙场:经过多个生产项目验证,稳定可靠

代码模块集成示例

namespace Demo.HttpApi.Host
{
    [DependsOn(
      typeof(VoloHttpClientModule)
    )]
    public class DemoHttpApiHostModule : AbpModule
    {
        // config service & other
    }
}

代码调用示例

POST 请求示例
public class DemoService:IDemoService
{
	private readonly IHttpClientService _httpClientService;
	public DemoService(IHttpClientService httpClientService)
	{
		_httpClientService=httpClientService;
	}
	 

	public async Task<ServiceResult<string>> AddAsync(AddInput input)
	{
		Dictionary<string, string> dic = new Dictionary<string, string>
		{
			{ "Authorization", "***" }
		};

		var postResult = await _httpClientService.PostAsync(new PostInput()
		{
			Data = requestStr,
			Url = url,
			DicHeaders = dic
		});
	}

}

Document Version: v1.0
Created Date: June 2026
Author: Patrick.Z

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Yyt.Abp.HttpClient:

Package Downloads
Yyt.Abp.HwSdk

It is a library that provides the functionality to simplify the integration of SDC camera devices and LVS video storage devices in the HWSdk protocol for .NET applications,Version 1.0.2 added support for net8. Built with a modular architecture, it enables seamless integration into your existing projects. Maintained and supported by Patrick.Z, it streamlines routine development configurations in .NET applications and takes over heavy, tedious workloads for you.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.5 99 8/25/2026
1.0.4 174 7/14/2026
1.0.3 108 6/30/2026
1.0.2 150 6/23/2026
1.0.0 152 6/9/2026