hoverpy.lib.twisted.TCP4ClientEndpoint - python examples

Here are the examples of the python api hoverpy.lib.twisted.TCP4ClientEndpoint taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

3 View Complete Implementation : twist.py
Copyright Apache License 2.0
Author : SpectoLabs
@simulate("twisted.db")
def main():
    endpoint = lib.twisted.TCP4ClientEndpoint()
    agent = ProxyAgent(endpoint)
    d = agent.request("GET", "http://echo.ioloop.io/a/b?format=json")
    d.addCallbacks(display, err)
    d.addCallback(lambda ignored: reactor.stop())
    reactor.run()