DEV Community

Lam Hoang
Lam Hoang

Posted on

4 2

Axios Shorthand methods

Send a REQUEST request

axios.request(config)

Send a GET request

axios.get(url, config)

Send a DELETE request

axios.delete(url, config)

Send a HEAD request

axios.head(url, config)

Send a OPTIONS request

axios.options(url, config)

Send a POST request

axios.post(url, data, config)

Send a PUT request

axios.put(url, data, config)

Send a PATCH request

axios.patch(url, data, config)

Source: Axios Cheat Sheet

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more