"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_node_module = require('../node/module.js');

//#region src/smol/http.ts
/**
* @file Lazy-loader for socket-btm's `node:smol-http`. `node:smol-http` is the
*   C++-accelerated HTTP server + client binding shipped by socket-btm's smol
*   Node binary. It backs a pipelined HTTP/1.1 + HTTP/2 client (`request`), a
*   uWS-backed server (`serve`), and a family of fast-path response writers
*   (`fastJsonResponse`, `fastErrorResponse`, etc.) that bypass the
*   `http.ServerResponse` allocation hot path. Returns `undefined` on stock
*   Node + non-Node runtimes. Result is cached across calls.
*
* @internal — `src/http-request/` is the natural consumer. Most
*   callers should use the standard `httpRequest` / `httpJson` /
*   `httpText` exports, which already route through this when smol
*   is present.
*/
let _smolHttp;
let _smolHttpProbed = false;
/**
* Returns `node:smol-http` when running on the smol Node binary, otherwise
* `undefined`. Result is cached across calls.
*/
/*@__NO_SIDE_EFFECTS__*/
function getSmolHttp() {
	if (!_smolHttpProbed) {
		_smolHttpProbed = true;
		/* c8 ignore start - smol Node binary only. */
		if (/* @__PURE__ */ require_node_module.isNodeBuiltin("node:smol-http")) _smolHttp = require("node:smol-http");
	}
	return _smolHttp;
}

//#endregion
exports.getSmolHttp = getSmolHttp;