|
Nathan Fisher |
at Sep 20, 2015 at 5:00 pm
|
⇧ |
| |
Hello,
I implemented a configurable HTTPS proxy for local development of multiple
web-services and a single static site. The built-in libraries make it
really easy if you're already familiar with the HTTP server module. The
only thing to be aware of with the proxy is that it forwards the external
hostname. If you're proxy is found at "yolo.appspot.com" and the proxy URL
is specified as "junctionbox.ca:80" it'll use the IP resolved for "
junctionbox.ca" and the HOST header will be "yolo.appspot.com".
https://github.com/nfisher/simplehttps/blob/master/main.go#L122Kind Regards,
Nathan
On Fri, 18 Sep 2015 at 12:51 DM wrote:I want to create a http proxy server in go that will receive a request and
send the request to another server with all the headers and then return the
response it receives to the caller. Can some one let me know how this can
be done efficiently?
--
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/d/optout. --
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/d/optout.