示例#1
0
 def posthandler(*args, **kwargs):
     response = yield httpspost('localhost',
                                PortNumberGenerator.next(),
                                '/path',
                                "body",
                                headers={'Content-Type': 'text/plain'})
     yield response
     responses.append(response)
示例#2
0
 def posthandler(*args, **kwargs):
     response = yield httpspost('localhost',
                                port,
                                '/path',
                                body,
                                headers={'Content-Type': 'text/plain'})
     yield response
     responses.append(response)
示例#3
0
 def posthandler(*args, **kwargs):
     response = yield httpspost('localhost', PortNumberGenerator.next(), '/path', "body",
             headers={'Content-Type': 'text/plain'}
     )
     yield response
     responses.append(response)
示例#4
0
 def posthandler(*args, **kwargs):
     response = yield httpspost('localhost', port, '/path', body,
             headers={'Content-Type': 'text/plain'}
     )
     yield response
     responses.append(response)