Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/g/r/gruvi-0.9.2/examples/webserver.py   gruvi(Download)
 
server = HttpServer(hello_app)
server.listen((args.hostname, args.port))
 
hub = get_hub()

src/g/r/gruvi-HEAD/examples/webserver.py   gruvi(Download)
 
server = HttpServer(hello_app)
server.listen((args.hostname, args.port))
 
hub = get_hub()

src/g/r/gruvi-0.9.2/tests/test_http.py   gruvi(Download)
    def test_request_headers_not_changed(self):
        server = HttpServer(hello_app)
        server.listen(('localhost', 0))
        addr = gruvi.getsockname(server.transport)
        client = HttpClient()
    def test_request_body_bytes(self):
        server = HttpServer(echo_app)
        server.listen(('localhost', 0))
        addr = gruvi.getsockname(server.transport)
        client = HttpClient()
    def test_request_body_string(self):
        server = HttpServer(echo_app)
        server.listen(('localhost', 0))
        addr = gruvi.getsockname(server.transport)
        client = HttpClient()
    def test_request_body_bytes_sequence(self):
        server = HttpServer(echo_app)
        server.listen(('localhost', 0))
        addr = gruvi.getsockname(server.transport)
        client = HttpClient()
    def test_request_body_string_sequence(self):
        server = HttpServer(echo_app)
        server.listen(('localhost', 0))
        addr = gruvi.getsockname(server.transport)
        client = HttpClient()