Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending requests inside the handler #432

Open
smolchanovsky opened this issue Apr 16, 2022 · 0 comments
Open

Sending requests inside the handler #432

smolchanovsky opened this issue Apr 16, 2022 · 0 comments
Milestone

Comments

@smolchanovsky
Copy link
Member

Sometimes it becomes necessary to send additional requests in the handler, for example, to process 4** response codes. Here is an example of how it can be used in the system HttpClient. It is necessary to make the same feature in the NClient.

A workaround that can be used now:

public void ConfigureServices(IServiceCollection services)
{
    services.AddRestNClient<IMyClient>()
        .AddHttpMessageHandler<AuthHeaderHandler>();
}

you can add HttpClient's system handlers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant