// node:http shim — Stripe SDK and axios have conditional http/https usage
// In CF Workers they use fetch instead, so these are never actually called
export class IncomingMessage {}
export class ServerResponse {}
export class Server { listen() {} close() {} }
export function createServer() { return new Server(); }
export function request() { throw new Error('node:http not available in CF Workers'); }
export function get() { throw new Error('node:http not available in CF Workers'); }
export const METHODS = ['GET','POST','PUT','DELETE','PATCH','HEAD','OPTIONS'];
export const STATUS_CODES = { 200: 'OK', 404: 'Not Found', 500: 'Internal Server Error' };
export const Agent = class {};
export const globalAgent = new Agent();
export default { IncomingMessage, ServerResponse, Server, createServer, request, get, METHODS, STATUS_CODES, Agent, globalAgent };
