Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1007901 - serveText - for sub-bots or direct servers

JavaX fragment (include)

static O serveText(O s) {
  ifndef NoNanoHTTPD
    if (getMainBot() == null) ret serveText_direct(str(s));
  endifndef
  ret call(getMainBot(), "serveByteArray", toUtf8(str(s)), "text/plain; charset=utf8");
}

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1007901
Snippet name: serveText - for sub-bots or direct servers
Eternal ID of this version: #1007901/7
Text MD5: b8b1457771e03447992bb7135e160f5f
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-16 23:36:07
Source code size: 213 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 349 / 333
Version history: 6 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1007901 & http://1007901.tinybrain.de