Skip to content

ReportHttp 网络上报器

WARNING

暂时不对上报结果进行验证,或进行重试
建议使用 GuzzleHttp

php
new \think\health\Report\ReportHttp(
    /**
     * 上报地址
     * @var string
     */
    url: 'https://your-server.com/health/report',
    /**
     * 超时时间
     * @var integer
     */
    timeout: 30,
)
参数类型是否必传默认值说明
urlstring-上报地址
timeoutinteger30超时时间