代理

测试代理延迟

对指定代理进行测试并返回延迟.必填 query:url、timeout;可选 expected.

get/proxies/{name}/delay

Request

  • Base URL
    http://127.0.0.1:9093
  • URL
    http://127.0.0.1:9093/proxies/{name}/delay
  • Auth
    HTTP bearer

Path parameters

namestring required

代理名称.

Query parameters

urlstring required
Example:https://www.gstatic.com/generate_204

延迟测试目标 URL.

timeoutinteger required
Example:5000

超时时间(毫秒).源码中该参数缺失或非整数会返回 400.

expectedstring
Example:200-299

期望的 HTTP 状态码,支持范围如 200-299.

Response

延迟(毫秒).

delayinteger

Changes

No recorded changes to this operation across all 2 revisions of this API.