@adobe/fetch
Advanced tools
Comparing version 4.0.11 to 4.0.12
{ | ||
"name": "@adobe/fetch", | ||
"version": "4.0.11", | ||
"version": "4.0.12", | ||
"description": "Light-weight Fetch implementation transparently supporting both HTTP/1(.1) and HTTP/2", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -449,2 +449,11 @@ <div align="center"> | ||
### Use h2c (http2 cleartext w/prior-knowledge) protocol | ||
```javascript | ||
import { fetch } from '@adobe/fetch'; | ||
const resp = await fetch('http2://nghttp2.org'); | ||
console.log(`Http version: ${resp.httpVersion}`); | ||
``` | ||
### Force HTTP/1(.1) protocol | ||
@@ -451,0 +460,0 @@ |
@@ -22,3 +22,3 @@ /* | ||
const debug = debugFactory('helix-fetch:utils'); | ||
const debug = debugFactory('adobe/fetch:utils'); | ||
const { MAX_LENGTH: maxBufferLength } = bufferConstants; | ||
@@ -25,0 +25,0 @@ const { Z_SYNC_FLUSH } = zlibConstants; |
@@ -22,3 +22,3 @@ /* | ||
const debug = debugFactory('helix-fetch:h1'); | ||
const debug = debugFactory('adobe/fetch:h1'); | ||
@@ -25,0 +25,0 @@ const getAgent = (ctx, protocol) => { |
@@ -21,3 +21,3 @@ /* | ||
const debug = debugFactory('helix-fetch:h2'); | ||
const debug = debugFactory('adobe/fetch:h2'); | ||
@@ -24,0 +24,0 @@ const { NGHTTP2_CANCEL } = constants; |
@@ -26,3 +26,3 @@ /* | ||
const debug = debugFactory('helix-fetch:core'); | ||
const debug = debugFactory('adobe/fetch:core'); | ||
@@ -29,0 +29,0 @@ class RequestContext { |
@@ -35,3 +35,3 @@ /* | ||
const debug = debugFactory('helix-fetch:core'); | ||
const debug = debugFactory('adobe/fetch:core'); | ||
@@ -38,0 +38,0 @@ const ALPN_HTTP2 = 'h2'; |
@@ -33,3 +33,3 @@ /* | ||
const { context, RequestAbortedError } = core; | ||
const debug = debugFactory('helix-fetch'); | ||
const debug = debugFactory('adobe/fetch'); | ||
@@ -36,0 +36,0 @@ const CACHEABLE_METHODS = ['GET', 'HEAD']; |
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
142076
604