myhttp.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:defcon-workshop 作者: devsecops 项目源码 文件源码
def process(self, prio, obj):
    self.pause.wait()
    c = obj.to_http_object(self.freelist.get())
    if self._proxies: c = self._set_proxy(c, obj)

    c.response_queue = ((StringIO(), StringIO(), obj))
    c.setopt(pycurl.WRITEFUNCTION, c.response_queue[0].write)
    c.setopt(pycurl.HEADERFUNCTION, c.response_queue[1].write)

    with self.mutex_multi:
        self.m.add_handle(c)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号