Skip to content

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.

License

Notifications You must be signed in to change notification settings

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

No packages published

Languages