def http_request(): req = Request('GET / HTTP/1.1\r\n\r\n') req.host = 'www.foo.faketld' req.port = '1337' req.is_ssl = True req.reqid = 123 rsp = Response('HTTP/1.1 200 OK\r\n\r\n') req.response = rsp return req
def req(): r = Request() r.start_line = "GET / HTTP/1.1" r.host = "www.ffffff.eeeeee" r.body = "AAAA" return r
def req(): r = Request() r.status_line = 'GET / HTTP/1.1' r.host = 'www.ffffff.eeeeee' r.raw_data = 'AAAA' return r
def req(): r = Request() r.start_line = 'GET / HTTP/1.1' r.host = 'www.ffffff.eeeeee' r.body = 'AAAA' return r