Browse Source

update readme.md

* remove Related section (as sent is deprecated)
 * add PATCH
http2
Vsevolod Strukchinsky 10 years ago
parent
commit
fa010fa5b4
  1. 7
      readme.md

7
readme.md

@ -31,7 +31,7 @@ got('http://todomvc.com', function (err, data, res) {
// Stream mode.
got('http://todomvc.com').pipe(fs.createWriteStream('index.html'));
// For POST and PUT methods got returns WritableStream
// For POST, PUT and PATCH methods got returns WritableStream
fs.createReadStream('index.html').pipe(got.post('http://todomvc.com'));
```
@ -99,11 +99,6 @@ The [response object](http://nodejs.org/api/http.html#http_http_incomingmessage)
Sets `options.method` to the method name and makes a request.
## Related
See [sent](https://github.com/floatdrop/sent) if you need to upload something.
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)

Loading…
Cancel
Save