1 | // o can be a class, then we search for a static method called "html". |
2 | static O callExtendedHtmlMethod(Object o, S uri) { |
3 | ret callExtendedHtmlMethod(o, uri, null); |
4 | } |
5 | |
6 | static O callExtendedHtmlMethod(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 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004437 |
Snippet name: | callExtendedHtmlMethod - also accepts responses of other type than String (e.g. NanoHTTPD.Response) |
Eternal ID of this version: | #1004437/1 |
Text MD5: | 630101b936069b6852e37e7debd03448 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-16 23:18:56 |
Source code size: | 398 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 623 / 603 |
Referenced in: | [show references] |