Created attachment 195192 [details] shar file for new port A python icap server to provide responses for squid users. You can use a framework by importing stuff from the pyicap package, extending the protocol handler class and starting the server, passing your handler to it.
A commit references this bug: Author: dbaio Date: Fri Jul 20 01:07:03 UTC 2018 New revision: 474985 URL: https://svnweb.freebsd.org/changeset/ports/474985 Log: Add net/py-pyicap: Lightweight Python framework for writing ICAP services A Python framework for writing ICAP servers (RFC 3507). ICAP is a protocol that is used by HTTP proxies to ask a separate service (an ICAP server) to do modification on HTTP requests and responses it proxies. Such proxy is an ICAP client. ICAP can be used to check permissions, scan viruses, place ads or otherwise modify the headers, content or request URL or HTTP requests and/or responses. These can be done without modifying the proxy server's code. The popular proxy software Squid 3.x supports the ICAP protocol, and this framework was tested with Squid3. WWW: https://github.com/netom/pyicap PR: 229827 Submitted by: Silvio Ap Silva <contato@kanazuchi.com> Changes: head/net/Makefile head/net/py-pyicap/ head/net/py-pyicap/Makefile head/net/py-pyicap/distinfo head/net/py-pyicap/pkg-descr
Committed, thanks!