Skip to content

FmgLib/FmgLib.HttpClientHelper

Repository files navigation

builder.Services.AddFmgLibHttpClient(); // OR
builder.Services
    .AddFmgLibHttpClient(() =>
        {
            JsonSerializerOptions options = new JsonSerializerOptions();
            options.PropertyNameCaseInsensitive = true;

            return options;
        });
User user = await HttpClientHelper.SendAsync<User>("REUQEST_URL", HttpMethod.Post, jsonRequestContent, ClientContentType.Json);

About

It is a library that offers you dynamism for the HttpClient service and contains methods that parse the returned response to the model you want.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages