python - Get current URL in Twisted -


i wrote script in twisted proxies websites, , i'm wondering if there's way current url in twisted? or let me know when url changes? thanks!

from twisted.internet import reactor twisted.web import proxy, server site = server.site(proxy.reverseproxyresource('www.website.com', 80, ''.encode("utf-8"))) reactor.listentcp(80, site) reactor.run() 


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -