Skip to content

Sending requests inside the handler #432

@smolchanovsky

Description

@smolchanovsky

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions