Documentation ¶
Overview ¶
Package main is a proxy + accesslog example. In this example we will make a small proxy which listens requests on "/proxy/+path". With two accesslog instances, one for the main application and one for the /proxy/ requests. Of cource, you could a single accesslog for the whole application, but for the sake of the example let's log them separately.
We will make use of iris.StripPrefix and host.ProxyHandler.
Click to show internal directories.
Click to hide internal directories.