HttpTracer icon indicating copy to clipboard operation
HttpTracer copied to clipboard

Add constructor that doesn't set the InnerHandler so it can be used in HttpClientBuilder.AddHttpMessageHandler

Open maartenmensink opened this issue 4 years ago • 1 comments

Due to the fact that the constructor always sets the InnerHandler the HttpTracerHandler wont play nice with HttpClientBuilder.AddHttpMessageHandler<>() method.

A constructor overload or options allow the HttpTracerHandler to be construct with the InnerHandler not being set would fix this.

maartenmensink avatar Feb 16 '22 07:02 maartenmensink

Hey @maartenmensink, Ideally you'll not need to create instances of the handler if you are using the builder. The .Build() method returns an instance of the HttpTracerHandler to you, with all the inner handlers setup.

DanielCauser avatar Jun 29 '23 13:06 DanielCauser