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

9
LINES

< > BotCompany Repo | #1023336 // dm_serveHttpFromFunction - start web server in dynamic module

JavaX fragment (include)

// function: func(S uri, SS params) -> O
// Note: function does not enter() automatically
static MyHTTPD dm_serveHttpFromFunction(int port, O function) {
  ret dm_ownResource(serveHttpFromFunction(port, function));
}

static MyHTTPD dm_serveHttpFromFunction(int port, IF2<S, SS, O> function) {
  ret dm_serveHttpFromFunction(port, (O) function);
}

Author comment

Began life as a copy of #1023279

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1023336
Snippet name: dm_serveHttpFromFunction - start web server in dynamic module
Eternal ID of this version: #1023336/4
Text MD5: b272f5e6a352db9e59eeab8650185186
Author: stefan
Category: javax / http
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-25 22:36:24
Source code size: 355 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 300 / 357
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)