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

9
LINES

< > BotCompany Repo | #1023547 // readHttpPageLinewise

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

Transpiled version (1651L) is out of date.

static new ThreadLocal<SS> readHttpPageLinewise_extraHeaders;

static CloseableIterableIterator<S> readHttpPageLinewise(S url) ctex {
  SS extraHeaders = getAndClearThreadLocal(readHttpPageLinewise_extraHeaders);
  URLConnection con = openConnection(url);
  for (S key : keys(extraHeaders))
    con.setRequestProperty(key, extraHeaders.get(key));
  ret linesFromReader(utf8BufferedReader(con.getInputStream()));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1023547
Snippet name: readHttpPageLinewise
Eternal ID of this version: #1023547/3
Text MD5: fee9da6bdebcb69fc50e414fcffd2aef
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-28 00:31:47
Source code size: 421 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 256 / 354
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)