rwx
unread,Jul 27, 2013, 6:15:28 AM7/27/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com
Hi,
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.