Libraryless. Click here for Pure Java version (12102L/72K).
sO eleu_callModuleHTMLMethod(O module, O req) { if (!dm_moduleIsStarted(module)) ret serve500(print("Module not started")); dm_call(module, 'setEleu, or(mainBot(), mc())); Method htmlMethod = first(singleArgumentMethods(findMethodsNamed_nonSynthetic(dm_mod(module), "html"))); if (htmlMethod == null) fail("HTML method not found in module " + module); Class reqType = firstMethodArgumentType(htmlMethod); O wrappedReq = req; if (isInterface(reqType)) wrappedReq = proxy(reqType, req); ret dm_call(module, 'html, wrappedReq); }
download show line numbers debug dex old transpilations
Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1029810 |
Snippet name: | eleu_callModuleHTMLMethod |
Eternal ID of this version: | #1029810/5 |
Text MD5: | 45b83568939a3b8f881700b002560874 |
Transpilation MD5: | 9b96c902bc51bf21e04484ebdabd8b19 |
Author: | stefan |
Category: | javax / http |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-09-07 07:14:34 |
Source code size: | 567 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 295 / 428 |
Version history: | 4 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |