Loading...
Build a curl command from a form — method, headers, auth, and body — and get the equivalent fetch() and HTTPie one-liners. Or paste a curl command to decode it.
Headers
curl -X GET 'https://api.example.com/v1/users' \ -H 'Content-Type: application/json'
await fetch('https://api.example.com/v1/users', {
method: 'GET',
headers: {
"Content-Type": "application/json"
}
})http GET https://api.example.com/v1/users Content-Type:'application/json'