Libraryless. Click here for Pure Java version (4480L/26K).
1 | static InputStream httpInputStream(S url) throws IOException {
|
2 | if (!isAbsoluteURL(url)) null; |
3 | print("Streaming " + url);
|
4 | ret httpInputStream(openConnection(new URL(url))); |
5 | } |
6 | |
7 | static InputStream httpInputStream(URLConnection con) throws IOException {
|
8 | setHeaders(con); |
9 | ret urlConnection_getInputStream(con); |
10 | } |
Began life as a copy of #1008030
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033018 |
| Snippet name: | httpInputStream |
| Eternal ID of this version: | #1033018/1 |
| Text MD5: | 2fa274d3b9a59923187e729c868affd1 |
| Transpilation MD5: | f82f672bc4568b92cf1a32492c7c3541 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-11 11:36:08 |
| Source code size: | 326 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 402 / 499 |
| Referenced in: | [show references] |