Ejemplo n.º 1
0
def client_with_url(timeout=3000):
    return make_client(addressbook.AddressBookService,
                       url="http://127.0.0.1:6080",
                       timeout=timeout)
Ejemplo n.º 2
0
def client_with_custom_header_factory(timeout=3000):
    return make_client(addressbook.AddressBookService,
                       url="http://127.0.0.1:6080",
                       timeout=timeout,
                       http_header_factory=CustomHeaderFactory())
Ejemplo n.º 3
0
def client_with_malformed_path(timeout=3000):
    return make_client(addressbook.AddressBookService,
                       host="127.0.0.1",
                       port=6080,
                       path="foo",
                       timeout=timeout)
Ejemplo n.º 4
0
def client_with_header_factory(timeout=3000):
    return make_client(addressbook.AddressBookService,
                       url="http://127.0.0.1:6080",
                       timeout=timeout,
                       http_header_factory=THttpHeaderFactory(
                           {"X-REQUEST-ID": str(uuid.uuid4())}))
Ejemplo n.º 5
0
def client_without_url(timeout=3000):
    return make_client(addressbook.AddressBookService,
                       host="127.0.0.1",
                       port=6080,
                       path="/foo",
                       timeout=timeout)