response.py 文件源码

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

项目:kscore 作者: liuyichen 项目源码 文件源码
def _update_chunk_length(self):
        # First, we'll figure out length of a chunk and then
        # we'll try to read it from socket.
        if self.chunk_left is not None:
            return
        line = self._fp.fp.readline()
        line = line.split(b';', 1)[0]
        try:
            self.chunk_left = int(line, 16)
        except ValueError:
            # Invalid chunked protocol response, abort.
            self.close()
            raise httplib.IncompleteRead(line)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号