await fetch("https://api.example.com/users", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer token"
},
body: "{\"name\":\"RustPoint\"}"
});
await axios({
url: "https://api.example.com/users",
method: "post",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer token"
},
data: "{\"name\":\"RustPoint\"}"
});