We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 055b7a4 + 92abac2 commit f55547cCopy full SHA for f55547c
docs/endpoints/request.md
@@ -151,8 +151,8 @@ const data = queryString.stringify({
151
http.request({
152
host: "boomlings.com",
153
path: target,
154
- port: 80
155
- method: "POST"
+ port: 80,
+ method: "POST",
156
headers: {
157
"Content-Type": "application/x-www-form-urlencoded",
158
"Content-Length": Buffer.byteLength(data)
@@ -179,11 +179,11 @@ async fn main() -> reqwest::Result<()> {
179
180
// create post values
181
let data = [
182
- ("something", "value"),
+ ("something", "value"),
183
("somethingElse", "otherValue")
184
];
185
186
- // send the request
+ // send the request
187
let req = reqwest::Client::new()
188
.post(uri)
189
.form(&data)
0 commit comments