server.py 文件源码

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

项目:toxiproxy-python 作者: douglas 项目源码 文件源码
def proxies(self):
        """ Returns all the proxies registered in the server """

        proxies = APIConsumer.get("/proxies").json()
        proxies_dict = {}

        for name, values in viewitems(proxies):
            # Lets create a Proxy object to hold all its data
            proxy = Proxy(**values)

            # Add the new proxy to the toxiproxy proxies collection
            proxies_dict.update({name: proxy})

        return proxies_dict
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号