Make a fluent builder class, to handle all custom HTTP Handlers that the client may have
Closed this issue · 6 comments
What do you foresee the API looking like for this? What's the purpose of a fluent API on this lib?
man, I always feel like my terse questions make me sound like an asshole, but I genuinely want to know.. if for no other reason than that I'd like to submit a PR
Hahaha, I want to have this builder available, in case the user has other Custom Handlers of his own. We have to make sure that our HttpTracerHandler is the "Root" handler, and all other custom handlers, are chained in the InnerHandler of our Tracer handler.
The user would chain all of his Custom HTTPHandlers using our fluent Builder and when he the .Build method, we will chain all of it together and return it to the client, so he can add it in the constructor of his HttpClient instance.
How does that work? What's the purpose of multiple handlers?
I thought that we could chain the httphandlers that users might have together, make sure our handler would be the root, so we would be sure that the user could have other handlers and also have ours. But after testing it out, it seems that I was wrong on how the handlers behave. @dylanberry is completely right. This will not work. I'm closing this issue o/
aaaand we are bringing this back ahahaha.