Update httpPost.md

This commit is contained in:
Angelos Chalaris
2018-01-10 21:31:48 +02:00
committed by GitHub
parent 31181db31b
commit 71a907d53d

View File

@ -28,7 +28,7 @@ const newPost = {
"body": "bar bar bar"
};
const data = JSON.stringify(newPost);
httpPost('https://website.com/posts', console.log, data; /*
httpPost('https://jsonplaceholder.typicode.com/posts', console.log, data; /*
Logs: {
"userId": 1,
"id": 1337,