1 | // retrieves url with HEAD. returns content length, |
2 | // or -1 in case of error. |
3 | static long urlSize(S url) {
|
4 | ret getURLSizeByHEAD(url); |
5 | } |
6 | |
7 | static long urlSize(URL url) {
|
8 | ret urlSize(str(url)); |
9 | } |
Began life as a copy of #1004757
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1005019 |
| Snippet name: | urlSize - get size of a file behind a URL [=getURLSizeByHEAD] |
| Eternal ID of this version: | #1005019/3 |
| Text MD5: | e12688963d9b4451b9d467b6fb790b9e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-02-03 01:22:38 |
| Source code size: | 205 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 733 / 770 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |