Documentation
¶
Overview ¶
An example of how to use go-icap.
Run this program and Squid on the same machine. Put the following lines in squid.conf:
icap_enable on icap_service service_req reqmod_precache icap://127.0.0.1:11344/golang adaptation_access service_req allow all
(The ICAP server needs to be started before Squid is.)
Set your browser to use the Squid proxy.
Try browsing to http://gateway/ and http://java.com/
Click to show internal directories.
Click to hide internal directories.