Sloy
Sloy
CDCloudflare Developers
Created by Sloy on 7/22/2024 in #workers-help
Node Http2 request to another origin
Does Cloudflare worker support request to outsource Http2 ? - I want to use node:http2 request to APNs
import http2 from "node:http2"; //Cannot find module 'node:http2' or its corresponding type declarations.
const session = http2.connect("https://api.sandbox.push.apple.com:443");
import http2 from "node:http2"; //Cannot find module 'node:http2' or its corresponding type declarations.
const session = http2.connect("https://api.sandbox.push.apple.com:443");
- I see Cloudflare has fetch api in their own build but when making request the Network connection is lost for HTTP is work fine but error with HTTP2
2 replies