FmgLib.HttpClientHelper

Last updated: 08 Eyl 2024

FmgLib.HttpClientHelper

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);