Bat.Http
7.0.3
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
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 Bat.Http --version 7.0.3
NuGet\Install-Package Bat.Http -Version 7.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="Bat.Http" Version="7.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Bat.Http --version 7.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Bat.Http, 7.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 Bat.Http as a Cake Addin #addin nuget:?package=Bat.Http&version=7.0.3 // Install Bat.Http as a Cake Tool #tool nuget:?package=Bat.Http&version=7.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
For use Bat.Http just do it :
1- Install Bat.Http on your project
2- Use it in bussiness logic for example :
public class BaseService : IBaseService
{
private readonly HttpClient _httpClient;
public QcCallController(IHttpClientFactory httpClientFactory)
{
_httpClient = httpClientFactory.CreateClient();
}
public void UseBatHttpSample()
{
var newObject = new
{
Id = 1,
FirstName = "Mehran",
LastName = "Norouzi"
};
var requestHeader = new Dictionary<string, string>
{
{"Authorization", "Bearer fjfksjfk-sdklsdjfsddsjkljsdklfj_sakd" }
};
string IP = ClientInfo.GetIP(HttpContext);
RequestDetails requestDetails = ClientInfo.GetRequestDetails(HttpContext);
var result1 = await HttpRequestTools.GetAsync(httpClient: _httpClient, url: "https://someSite.com");
var result2 = await HttpRequestTools.PostAsync(httpClient: _httpClient, url: "https://someSite.com",
contentJsonString: newObject.SerializeToJson(), header: requestHeader);
var result3 = await HttpRequestTools.PutAsync(httpClient: _httpClient, url: "https://someSite.com",
contentJsonString: newObject.SerializeToJson(), header: requestHeader);
var result4 = await HttpRequestTools.DeleteAsync(httpClient: _httpClient, url: "https://someSite.com",
contentJsonString: newObject.SerializeToJson(), header: requestHeader);
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. 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 is compatible. 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 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- Bat.Core (>= 1.1.8)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
-
net5.0
- Bat.Core (>= 1.1.8)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
-
net6.0
- Bat.Core (>= 6.0.1)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
-
net7.0
- Bat.Core (>= 7.0.3)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Bat.Http:
Package | Downloads |
---|---|
Bat.AspNetCore
This Package Contain Useful Library And Extention Method For Easy Develop High Tech Asp.Net Core Mvc Application. ForExample : Implementation Of Authentication, Authorization, TagHelpers, CustomAttribute, ResponseCache, ExtensionMethod, ... |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.2 | 154 | 3/5/2024 |
8.0.1 | 159 | 1/22/2024 |
8.0.0 | 216 | 12/1/2023 |
7.0.3 | 293 | 3/1/2023 |
7.0.0 | 360 | 12/5/2022 |
6.0.22 | 225 | 8/19/2023 |
6.0.21 | 196 | 8/19/2023 |
6.0.1 | 789 | 3/27/2022 |
1.1.4 | 1,320 | 10/18/2021 |
1.1.3 | 723 | 7/12/2021 |
1.1.2 | 863 | 4/8/2021 |
1.1.0 | 1,021 | 3/26/2021 |
1.0.7 | 612 | 2/4/2021 |
1.0.6 | 421 | 1/5/2021 |
1.0.5 | 425 | 11/26/2020 |
1.0.4 | 776 | 10/19/2020 |
- Upgrade Package To net 7.0.3
- Add new extension methods for send all type of http request