MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / createFormDataHandler

Function createFormDataHandler

lib/handlers/middleware.ts:69–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 * Parse the incoming request as urlencoded FormData.
68 */
69export function createFormDataHandler(): express.Handler {
70 const defaultMaxBodySize = ceProps('maxBodySize', '1mb');
71 const parser = express.urlencoded({
72 limit: ceProps('bodyParserLimit', defaultMaxBodySize),
73 extended: false,
74 });
75 return (req, res, next) => {
76 parser(req, res, next);
77 };
78}

Callers 1

initialiseApplicationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected