【问题标题】:mitmproxy, how to get the response time/duration of a call?mitmproxy,如何获取呼叫的响应时间/持续时间?
【发布时间】:2016-04-27 01:39:29
【问题描述】:

我能够从请求和响应中获取响应代码、正文、url 和查询字符串,但我无法获取调用所花费的时间。

我们有

  • flow.response.code
  • flow.response.content
  • flow.response.url

mitm 是否有任何东西可以获取通话的持续时间。

【问题讨论】:

    标签: python mitmproxy


    【解决方案1】:

    mitmproxy 数据结构记录在http://docs.mitmproxy.org/en/latest/dev/models.html

    例如:

    def request(context, flow):
        print(flow.request.timestamp_start)
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-05
    • 2012-03-14
    • 1970-01-01
    • 2012-03-07
    • 2022-10-15
    • 2016-04-12
    相关资源
    最近更新 更多