【文件属性】:
文件名称:webpipr:来自命令行的同步 webhook
文件大小:66KB
文件格式:ZIP
更新时间:2021-06-22 09:01:00
Go
Web Pipr (piper)
Webpipr 允许您向它发送一个请求并等待第二个请求命中它。 它可用于等,将 XML 传递给调用请求。
会给你一个新的 url 来收听。
基本用法
POST 和 GET 参数被传递给等待请求。
等待回调:发送请求到
发送回调:发送请求到
窗口 1
$ curl webpipr.com/wait/somerandomstring
last=3
first=1
窗口 2
$ curl 'webpipr.com/callback/somerandomstring?first=1&last=3'
超时
如果curl在设定的时间内未收到回调,则使用--max-time或-m使其超时。
$ curl -m 5 webpipr.com/wait/anotherrandomstring
curl: (28) Operation timed out a
【文件预览】:
webpipr-master
----main.go(6KB)
----caller.gif(102KB)
----Dockerfile(178B)
----callee.gif(153KB)
----README.md(2KB)
----.gitignore(266B)