Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 673 Bytes

HttpRequest.md

File metadata and controls

31 lines (24 loc) · 673 Bytes

Http中间插件

介绍

  • 发起Http请求,输出返回内容或者下载文件路径

依赖

  • rabbit/httpclient

插件配置

common_http:
  type: Rabbit\Data\Pipeline\Common\HttpRequest
  usePool: true
  timeout: 30
  throttleTime: 60
  retry: callable
  checkResponseFunc: callable
  format: jsonArray
  download: false
  • usePool连接池数量
  • timeout超时时间
  • throttleTime限频间隔
  • retry重试拦截处理函数
  • checkResponseFunc校验返回值函数
  • format格式化方式 null|jsonArray|jsonObject|xmlArray|xmlObject|domObject|xpathObject
  • download是否下载