文件名称:echo-httpd:回显HTTP服务器,以查看发送的内容
文件大小:2KB
文件格式:ZIP
更新时间:2024-04-04 05:32:00
JavaScript
回声httpd 回显HTTP服务器,以查看发送的内容。 设置 # docker pull approach0/echo-httpd # docker run -it -p 8921:8080 hello-httpd node hello.js hello world! 测试 $ curl -X POST http://localhost:8921/foo/bar -d '{"key1":"value1", "key2":"value2"}' --header "Content-Type: application/json" /usr/bin/node /code/hello.js hello world! POST /foo/bar ["Host","localhost:8921","User-Agent","curl/7.73.0","Accept","*/*","Content-
【文件预览】:
echo-httpd-master
----hello.js(594B)
----package.json(260B)
----Dockerfile(402B)
----.gitignore(32B)
----README.md(542B)