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

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

src/g/r/gruvi-0.9.2/examples/curl.py   gruvi(Download)
client = HttpClient()
host, port, ssl, path = geturlinfo(args.url)
client.connect((host, port), ssl=ssl)
 
client.request('GET', path)

src/g/r/gruvi-HEAD/examples/curl.py   gruvi(Download)
url = http.urlsplit2(args.url)
client = http.HttpClient()
client.connect((url.hostname, url.port), ssl=url.scheme == 'https')
 
client.request('GET', url.path)

src/b/l/bluepass-HEAD/bluepass/syncapi.py   bluepass(Download)
        connection = HttpClient()
        try:
            connection.connect(address, ssl=True, **sslargs)
        except gruvi.Error as e:
            self._log.error('could not connect to {}:{}' % address)

src/g/r/gruvi-0.9.2/tests/test_http.py   gruvi(Download)
        port = server.transport.getsockname()[1]
        client = HttpClient()
        client.connect(('localhost', port))
        client.request('GET', '/')
        response = client.getresponse()
        addr = gruvi.getsockname(server.transport)
        client = HttpClient()
        client.connect(addr)
        headers = []
        client.request('GET', '/', headers)
        addr = gruvi.getsockname(server.transport)
        client = HttpClient()
        client.connect(addr)
        client.request('POST', '/', body=b'foo')
        response = client.getresponse()
        addr = gruvi.getsockname(server.transport)
        client = HttpClient()
        client.connect(addr)
        client.request('POST', '/', body='foo')
        response = client.getresponse()
        addr = gruvi.getsockname(server.transport)
        client = HttpClient()
        client.connect(addr)
        client.request('POST', '/', body=[b'foo', b'bar'])
        response = client.getresponse()