Human Readable AJAX Requests
As a JavaScript developer, you must have seen code like this before:
fetch('/users.json', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Hubot',
login: 'hubot',
}),
})
.then(response => response.json())
.then(json => console.log('parsed json', json))
.catch(e…
Keep reading with a 7-day free trial
Subscribe to zach.codes to keep reading this post and get 7 days of free access to the full post archives.