1 | // o can be a class, then we search for a static method called "html". |
2 | static O callHtmlMethod2(Object o, S uri) { |
3 | ret callHtmlMethod2(o, uri, null); |
4 | } |
5 | |
6 | static O callHtmlMethod2(Object o, S uri, Map<S, S> params) { |
7 | O s = callOpt(o, "html", uri, params); |
8 | if (s == null) |
9 | s = callOpt(o, "html", uri); |
10 | if (s == null) |
11 | s = callOpt(o, "html"); |
12 | ret s; |
13 | } |
Began life as a copy of #1001959
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010841 |
Snippet name: | callHtmlMethod2 - allows NanoHTTPD.Response as return type of html() method |
Eternal ID of this version: | #1010841/2 |
Text MD5: | ff2e59c171687ca3f558c1ee0d8858f5 |
Author: | stefan |
Category: | javax / html |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-04 18:02:28 |
Source code size: | 377 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 447 / 474 |
Version history: | 1 change(s) |
Referenced in: | [show references] |