github polterguy/magic v2.3
HTTP client addition

latest releases: v17.3.9, v17.3.8, v17.3.7...
5 years ago

This release contains an HTTP client that allows you to invoke HTTP REST endpoints with a single line of C#. You can find the HTTP client in "modules/magic.http", and you can consume it through dependency injection by simply adding an IHttpClient instance to (for instance) your controllers, at which point an HttpClient will be automatically injected into your CTOR invocations.

The HTTP client features some intelligent use of C# generics, which automatically transforms between your DTOs and JSON for you.

You can see some basic usage examples here.

Don't miss a new magic release

NewReleases is sending notifications on new releases.