Popularity
1.2
Stable
Activity
0.0
Stable
5
2
6

Description

RequestManager is a .NET Core library that provides helper methods to easily send requests in different formats and deserialize the response into objects.

Programming language: C#
License: Apache License 2.0
Tags: API     HTTP     WebApi     REST     AspNetCore     Dotnetcore     Webdev    

RequestManager alternatives and similar packages

Based on the "API" category.
Alternatively, view RequestManager alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of RequestManager or a related project?

Add another 'API' Package

README

Request Manager

RequestManager is a .NET Core library that provides helper methods to easily send requests in different formats and deserialize the response into objects.

You can install the library from NuGet.

Build status

Build Status

Features

RequestManager handles the requests by reusing the same HttpClient object when the requests are sent to the same API. For multiple APIs, the HttpClient objects will be saved and reused in the proper situation.

The library can send GET, POST, PUT, PATCH and DELETE requests with JSON, XML or form-data content types, and receive any type of response, with the possibility to translate it from JSON and XML.

How to use?

Sending a request and reading the response

var postAndGetJsonResponse = (await _requestSender.PostAsync("/api/test/json",
                                                             new Person() { Id = 2, Name = "John" }))
                             .ResultAs<Person>(ContentType.JSON);

You can take a look at the HomeController from the Sandbox project for more examples regarding sending different content types.