Serverless services
curl https://mtulio.dev/api/ip
curl -s https://mtulio.dev/api/ip/ip?json |jq .
{
"ip": "1.2.3.4",
"ipv4": "1.2.3.4"
}
curl -s https://mtulio.dev/api/echo
- http echo (request headers)
echo -e $(curl -s https://mtulio.eng.br/api/echo?1=2 |jq .headers)
"Content-Length: 0
Host: mtulio.eng.br
X-Forwarded-Host: mtulio.eng.br
Accept: */*
X-Vercel-Deployment-Url: mtulio-eng-br-9fz7hpsx5.vercel.app
X-Forwarded-Proto: https
X-Forwarded-For: 1.2.3.4
User-Agent: curl/7.61.1
X-Vercel-Forwarded-For: 1.2.3.4
X-Real-Ip: 1.2.3.4
X-Vercel-Id: gru1::x