zach.codes

Share this post

User's avatar
zach.codes
Human Readable AJAX Requests
Copy link
Facebook
Email
Notes
More

Human Readable AJAX Requests

Zach Silveira
Dec 09, 2016
∙ Paid

Share this post

User's avatar
zach.codes
Human Readable AJAX Requests
Copy link
Facebook
Email
Notes
More
Share

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.

Already a paid subscriber? Sign in
© 2025 Zach Silveira
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More