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