Fukicycle.Tool.HttpClientExtensions 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Fukicycle.Tool.HttpClientExtensions --version 1.0.2                
NuGet\Install-Package Fukicycle.Tool.HttpClientExtensions -Version 1.0.2                
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="Fukicycle.Tool.HttpClientExtensions" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Fukicycle.Tool.HttpClientExtensions --version 1.0.2                
#r "nuget: Fukicycle.Tool.HttpClientExtensions, 1.0.2"                
#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 Fukicycle.Tool.HttpClientExtensions as a Cake Addin
#addin nuget:?package=Fukicycle.Tool.HttpClientExtensions&version=1.0.2

// Install Fukicycle.Tool.HttpClientExtensions as a Cake Tool
#tool nuget:?package=Fukicycle.Tool.HttpClientExtensions&version=1.0.2                

Fukicycle.Tool.HttpClientExtensions

Nuget

Build and publish packages

This library is a helper that creates requests necessary for HTTP communication. If you are having trouble with complicated settings for HTTP communication, please try using it.

Happy coding 😃

Features

  1. Provides a helper for HttpRequest.

Installing and Getting started

1. install package.

Fukicycle.Tool.HttpClientExtensions is available for download and installation as NuGet packages.

dotnet add package Fukicycle.Tool.HttpClientExtensions --version <version>

2. Create your app.

HttpClient client = new HttpClient() { BaseAddress = new Uri("http://localhost:8001/") };  // 👈 set your base address!
HttpRequestMessage httpRequestMessage = new HttpRequestMessageBuilder()                    // 👈 create request message builder!
                                            .AddHttpMethod(HttpMethod.Post)                // 👈 set your HttpMethod
                                            .AddEndPoint("/get/times")                     // 👈 set your end point for api or http request.
                                            .Build();                                      // 👈 create HttpRequestMessage
HttpResponseResult responseResult = await new RequestHelper(client).SendAsync(httpRequestMessage); // 👈 Passing your http client. After that, you can send request!
// 👇 Now, we supported bellow contents.
Console.WriteLine(responseResult.JsonBody);
Console.WriteLine(responseResult.Message);
Console.WriteLine(responseResult.StatusCode);

Contributing

Pull requests and stars are always welcome. Contributions are what make the open source community such an amazing place to be learn, inspire, and create.
Any contributions you make are greatly appreciated.

  1. Fork the Project.
  2. Create your Feature Branch(git checkout -b feature/amazing_feature).
  3. Commit your Changes(git commit -m 'Add some changes').
  4. Push to the Branch(git push origin feature/amazing_feature).
  5. Open a Pull Request.

Author

License

MIT. Click here for details.

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 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • 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.4 96 8/6/2024
1.0.3 118 4/9/2024
1.0.2 107 4/4/2024
1.0.1 103 4/4/2024
1.0.0 114 4/4/2024