Libraryless. Click here for Pure Java version (12102L/72K).
1 | sO eleu_callModuleHTMLMethod(O module, O req) { |
2 | if (!dm_moduleIsStarted(module)) |
3 | ret serve500(print("Module not started")); |
4 | |
5 | dm_call(module, 'setEleu, or(mainBot(), mc())); |
6 | Method htmlMethod = first(singleArgumentMethods(findMethodsNamed_nonSynthetic(dm_mod(module), "html"))); |
7 | if (htmlMethod == null) fail("HTML method not found in module " + module); |
8 | Class reqType = firstMethodArgumentType(htmlMethod); |
9 | O wrappedReq = req; |
10 | if (isInterface(reqType)) |
11 | wrappedReq = proxy(reqType, req); |
12 | ret dm_call(module, 'html, wrappedReq); |
13 | } |
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: | 296 / 429 |
Version history: | 4 change(s) |
Referenced in: | [show references] |