dsh-http-uckkk
Đã xác minhdsh-http-uckkk · v0.1.0 · MIT
HTTP 请求工具:发起请求返回状态码/响应头/响应体/耗时(Node fetch)
Cài đặt
dsh plugin add dsh-http-uckkk Xác nhận layer đã áp bằng dsh --profile default --dump-config — xem hướng dẫn cài plugin.
Mã nguồn
Phát hành lên npm mà không có repository công khai. Hãy kiểm tra nội dung package trước khi cài.
Thẻ
Readme
dsh-http-uckkk · HTTP 请求工具
发起 HTTP 请求,返回状态码、响应头、响应体(截断)与耗时。纯 Node(fetch)实现。
提供的工具
| 工具 | 作用 |
|---|---|
http_request |
发请求 → 状态/响应头/响应体/耗时 |
安装
dsh plugin add dsh-http-uckkk
安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-http-uckkk"。
用法示例
请求这个接口看看返回什么
→ 调用 http_request(url="https://api.example.com/ping")