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

7
LINES

< > BotCompany Repo | #1028640 // subBot_completeRequestURL (with domain and port)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2585L/17K).

sS subBot_completeRequestURL() {
  int port = subBot_currentPort();
  bool https = subBot_isHttps();
  bool standardPort = port == (https ? 443 : 80);
  ret "http" + (https ? "s" : "") + "://" + domain()
    + (standardPort ? "" : ":" + port) + getActualURI();
}

Author comment

Began life as a copy of #1014670

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1028640
Snippet name: subBot_completeRequestURL (with domain and port)
Eternal ID of this version: #1028640/3
Text MD5: 2c99166145ed8540baac5b9808553fe2
Transpilation MD5: f3f8c06d02cdb2cbdb087a2d8bcf5d37
Author: stefan
Category: javax / web
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-30 16:19:33
Source code size: 268 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 109 / 196
Version history: 2 change(s)
Referenced in: [show references]