@solid/community-server
Version:
Community Solid Server: an open and modular implementation of the Solid specifications
11 lines • 379 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isHttpRequest = isHttpRequest;
/**
* Checks if the given stream is an HttpRequest.
*/
function isHttpRequest(stream) {
const req = stream;
return typeof req.socket === 'object' && typeof req.url === 'string' && typeof req.method === 'string';
}
//# sourceMappingURL=HttpRequest.js.map