HTTP Request Methods in JavaScript
From the Axios cheat sheet · Installation & Basic Requests · verified Jul 2026
HTTP Request Methods
Perform GET, POST, PUT, PATCH, and DELETE requests
javascript
// GET request
const users = await axios.get('/api/users');
// POST request with data
const newUser = await axios.post('/api/users', {
name: 'John Doe',
email: 'john@example.com'
});
// PUT request (full update)
const updated = await axios.put('/api/users/1', {
name: 'Jane Doe',
email: 'jane@example.com'
});
// PATCH request (partial update)
const patched = await axios.patch('/api/users/1', {
email: 'newemail@example.com'
});
// DELETE request
await axios.delete('/api/users/1');✅ Dedicated methods for each HTTP verb for cleaner syntax
💡 postForm/putForm/patchForm auto-set multipart/form-data
🔍 Second parameter is data, third is config for POST/PUT/PATCH
⚡ Use Promise.all() for concurrent requests to improve speed
getpostputpatchdeletemethods