This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var caCert = X509Certificate2.CreateFromPem(options.CaCertificate!); | |
| clientSettings.CreateHttpMessageHandler = () => | |
| { | |
| var httpSettings = new SocketsHttpHandler() | |
| { | |
| // This is taken from the default implementation. | |
| KeepAlivePingDelay = clientSettings.ConnectivitySettings.KeepAliveInterval, | |
| KeepAlivePingTimeout = clientSettings.ConnectivitySettings.KeepAliveTimeout, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "time" |
OlderNewer