You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What operating system and processor architecture are you using (go env)?
Linux/amd64
What did you do?
I tried to figure out how to use httptest.NewTLSServer and found it cumbersome. I submitted an example of the boilerplate required in my CL to improve documentation, https://go-review.googlesource.com/#/c/34639/, but the consensus is that this API should be improved for 1.9 instead of patching poor API with an example in documentation.
Here's an example of a working NewTLSServer in use:
What version of Go are you using (
go version
)?go1.7.4
What operating system and processor architecture are you using (
go env
)?Linux/amd64
What did you do?
I tried to figure out how to use
httptest.NewTLSServer
and found it cumbersome. I submitted an example of the boilerplate required in my CL to improve documentation, https://go-review.googlesource.com/#/c/34639/, but the consensus is that this API should be improved for 1.9 instead of patching poor API with an example in documentation.Here's an example of a working
NewTLSServer
in use:What did you expect to see?
An easy to use TLS server for HTTPS testing.
What did you see instead?
A server that requires accessing and parsing TLS config internals for proper TLS authentication to work.
The text was updated successfully, but these errors were encountered: