Allow SocketsHttpHandler.ConnectCallback for sync requests (#45300)
HTTP/1.1 support with sync requests currently doesn't work when a ConnectCallback is specified, even though a developer who wanted to make synchronous requests could provide a synchronously-completing callback. This also consolidates the connect logic across sync/async, avoids an extra delegate, etc.
Showing
想要评论请 注册 或 登录