A proxy sending HTTP requests to WebSocket client.
393
A proxy sending HTTP requests to WebSocket client. Make the WebSocket client a Webhook server.
把 http 请求转发到 WebSocket 客户端的代理,为 WebSocket 客户端实现 Webhook server 的功能。
docker run -d -p 80:80 ddio001/http2websocket
发起 WebSocket 连接。 Create a WebSocket connection.
发起 http 请求。 Send http requests.
curl 'http://localhost/haha' -H 'Content-Type: application/json' --data '{"msg":"wow"}'
{
"path": "/haha",
"method": "POST",
"headers" :{
"Content-Type": "application/json"
},
"content": {
"msg": "wow"
}
}
pip install fastapi[all]
cd src
uvicorn main:app --reload
docker build -t http2websocket .
Content type
Image
Digest
sha256:c873885be…
Size
70.2 MB
Last updated
about 4 years ago
docker pull ddio001/http2websocket