Commit 364ec403 authored by analog-nico's avatar analog-nico
Browse files

chore: improved formatting

parent 7a5522fe
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -102,9 +102,7 @@ rp(options)


### POST data to a JSON REST API
### POST data to a JSON REST API


Set option.body to data, and json:true to encode the body as JSON. See below
Set `option.body` to your data and `json: true` to encode the body as JSON. See below for HTML forms.
for HTML forms.



``` js
``` js
var options = {
var options = {
@@ -127,7 +125,7 @@ rp(options)


### POST like HTML forms do
### POST like HTML forms do


Set option.form to encode the body as HTML form
Set `option.form` to your data to encode the body the same way as HTML forms do.


``` js
``` js
var options = {
var options = {