"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
const node_worker_threads_1 = require("node:worker_threads");
const HotHTTPServerProcessRequest_1 = require("./HotHTTPServerProcessRequest");
(() => __awaiter(void 0, void 0, void 0, function* () {
    let result = yield (0, HotHTTPServerProcessRequest_1.processRequest)(null, node_worker_threads_1.workerData.logger, node_worker_threads_1.workerData.route, node_worker_threads_1.workerData.method, node_worker_threads_1.workerData.methodName, node_worker_threads_1.workerData.req, node_worker_threads_1.workerData.res);
    node_worker_threads_1.parentPort.postMessage(result);
}))();
//# sourceMappingURL=HotHTTPServerThread.js.map