grpc-dotnet icon indicating copy to clipboard operation
grpc-dotnet copied to clipboard

How to obtain the default HttpHandler in order to only influence keepalive settings

Open OkkeHendriks opened this issue 2 years ago • 7 comments

Hello,

I want to enable HTTP/2 keep alive for a gRPC client. I believe that I should supply the relevant settings via the GrpcChannelOptions.HttpHandler property.

My question is, how should I construct a default HttpMessageHandler, which normally happens here.

I only want to influence the keepalive settings, the rest should be the gRPC defaults which are used internally.

Is there something I am missing here or should those default be exposed somehow?

OkkeHendriks avatar Nov 18 '22 14:11 OkkeHendriks