Using net/http, I call ListenAndServe and ListenAndServeTLS with the same
handler to serve both http and https,
I wonder how to detect if a request come in is over http or https?
I have read the source code of net/http and searched in nuts, but found
nothing. :(
Maybe hijack is a good idea, but not for me.
Any suggestions?
Thanks.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.