horitaku1124 / nim_httpserver

HTTP server using nim
0 stars 0 forks source link

Nim http server

Run

nimble install yaml
nim c nim_httpserver.nim
./nim_httpserver

Test on docker

cd docker
docker build ../ -f Dockerfile -t nim_httpserver
docker run --rm -it -p 8100:8000 nim_httpserver /root/nim_httpserver

open http://localhost:8100/

Command Option

Testing HTTP/2

curl -V | grep nghttp2 # Check whether curl supports HTTP/2
curl --http2 -v http://127.0.0.1:8000/