@ejnshtein/smol-request
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "@ejnshtein/smol-request", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Tiny http/https request wrapper for Node.js using ESM (13.5 and newer)", | ||
@@ -5,0 +5,0 @@ "main": "Request.js", |
@@ -67,5 +67,17 @@ # Smol Request | ||
OR you can get only headers without parsing body from request using `responseType: 'headers'` | ||
### Headers | ||
You can get only headers without parsing body from request using `responseType: 'headers'` | ||
```js | ||
request('https://picsum.photos/200/300', { responseType: 'headers' }) | ||
.then(({ headers }) => { | ||
console.log('Picture location - ', headers.location) | ||
}) | ||
``` | ||
# Example | ||
There are a few examples in `example` folder in the [repo](https://github.com/ejnshtein/smol-request/tree/master/example). | ||
# API | ||
@@ -72,0 +84,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14349
110