Ejemplo n.º 1
0
 def req(self):
     conn = flow.ClientConnect(("one", 2222))
     headers = flow.ODictCaseless()
     headers["header"] = ["qvalue"]
     req = flow.Request(conn, (1, 1), "host", 80, "http", "GET", "/path",
                        headers, "content_request")
     return flow.Flow(req)
Ejemplo n.º 2
0
def tflow_err():
    r = treq()
    f = flow.Flow(r)
    f.error = flow.Error(r, "error")
    f.error.reply = controller.DummyReply()
    return f
Ejemplo n.º 3
0
def tflow_full():
    r = treq()
    f = flow.Flow(r)
    f.response = tresp(r)
    return f
Ejemplo n.º 4
0
def tflow():
    r = treq()
    return flow.Flow(r)
Ejemplo n.º 5
0
 def test_serialization(self):
     f = flow.Flow(None)
     f.request = tutils.treq()
Ejemplo n.º 6
0
def tflow_err():
    r = treq()
    f = flow.Flow(r)
    f.error = flow.Error(r, "error")
    return f