def create_client(self, **kwargs):
     return SimpleAsyncHTTPClient(force_instance=True,
                                  defaults=dict(validate_cert=False),
                                  **kwargs)
 def get_http_client(self):
     client = SimpleAsyncHTTPClient(force_instance=True)
     self.assertTrue(isinstance(client, SimpleAsyncHTTPClient))
     return client
 def create_client(self, **kwargs):
     return SimpleAsyncHTTPClient(force_instance=True, **kwargs)
Пример #4
0
 def get_http_client(self):
     # Some versions of libcurl have deadlock bugs with ssl,
     # so always run these tests with SimpleAsyncHTTPClient.
     return SimpleAsyncHTTPClient(io_loop=self.io_loop,
                                  force_instance=True,
                                  defaults=dict(validate_cert=False))
 async def make_client():
     await gen.sleep(0)
     return SimpleAsyncHTTPClient()
Пример #6
0
 def get_http_client(self):
     return SimpleAsyncHTTPClient()
Пример #7
0
 def get_http_client(self):
     # simple_httpclient only: curl doesn't expose the reason string
     return SimpleAsyncHTTPClient(io_loop=self.io_loop)
Пример #8
0
 def get_http_client(self):
     return SimpleAsyncHTTPClient(max_body_size=1024 * 64)
Пример #9
0
 def get_http_client(self):
     # 100KB body with 64KB buffer
     return SimpleAsyncHTTPClient(max_body_size=1024 * 100,
                                  max_buffer_size=1024 * 64)
Пример #10
0
 def get_http_client(self):
     return SimpleAsyncHTTPClient(max_header_size=1024)
 def get_http_client(self):
     return SimpleAsyncHTTPClient(io_loop=self.io_loop, max_header_size=1024)
Пример #12
0
 def get_http_client(self):
     # body_producer doesn't work on curl_httpclient, so override the
     # configured AsyncHTTPClient implementation.
     return SimpleAsyncHTTPClient()
Пример #13
0
 def get_http_client(self):
     # These tests require HTTP/1; force the use of SimpleAsyncHTTPClient.
     return SimpleAsyncHTTPClient()
Пример #14
0
 def setUp(self):
     super(SimpleHTTPClientTestCase, self).setUp()
     self.http_client = SimpleAsyncHTTPClient(self.io_loop)