MCPcopy Create free account
hub / github.com/msgbyte/tailchat / readIncomingMessageData

Function readIncomingMessageData

server/services/openapi/oidc/oidc.service.ts:63–76  ·  view source on GitHub ↗
(req: IncomingMessage)

Source from the content-addressed store, hash-verified

61};
62
63function readIncomingMessageData(req: IncomingMessage) {
64 return new Promise((resolve, reject) => {
65 let body = '';
66 req.on('data', function (chunk) {
67 body += chunk;
68 });
69 req.on('end', function () {
70 resolve(body);
71 });
72 req.on('error', () => {
73 reject();
74 });
75 });
76}
77
78class OIDCService extends TcService {
79 provider = this.createOIDCProvider();

Callers 1

getRoutesMethod · 0.85

Calls 2

rejectFunction · 0.85
onMethod · 0.80

Tested by

no test coverage detected