1 | static L<S> loadSnippets(S... ids) {
|
2 | ret loadSnippets(asList(ids)); |
3 | } |
4 | |
5 | static L<S> loadSnippets(L<S> ids) ctex {
|
6 | new L<S> texts; |
7 | Map<S, S> map = jsonDecodeMap(doPost( |
8 | "ids=" + urlencode(join(" ", parseSnippetIDs(ids))),
|
9 | tb_mainServer() + "/get-multi.php")); |
10 | for (S id : ids) |
11 | texts.add(lookupSnippetID(map, id)); |
12 | ret texts; |
13 | } |
Began life as a copy of #1003875
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: | #1011991 |
| Snippet name: | loadSnippets v1 - fetch multiple snippets in one go - yes it uses POST |
| Eternal ID of this version: | #1011991/1 |
| Text MD5: | 9037498199a2763ded05546bc305a1ef |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-14 06:53:16 |
| Source code size: | 358 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 656 / 703 |
| Referenced in: | [show references] |