Add comment to second example about body
Explain that by providing null/undefined, we are telling it we are not sending a body(or specifically a lack there of)
This commit is contained in:
@ -42,7 +42,7 @@ Logs: {
|
|||||||
*/
|
*/
|
||||||
httpPost(
|
httpPost(
|
||||||
'https://jsonplaceholder.typicode.com/posts',
|
'https://jsonplaceholder.typicode.com/posts',
|
||||||
null,
|
null, //does not send a body
|
||||||
console.log
|
console.log
|
||||||
); /*
|
); /*
|
||||||
Logs: {
|
Logs: {
|
||||||
|
|||||||
Reference in New Issue
Block a user