Handbook
Glossary
load-metainfo ( obj -- metainfo )
Vocabulary
bittorrent
Inputs
obj
an
object
Outputs
metainfo
an
object
Definition
IN:
bittorrent
GENERIC:
load-metainfo
( obj -- metainfo )
Methods
USING:
bencode
bittorrent
io.encodings.binary
io.files
io.pathnames
;
M:
pathname
load-metainfo
binary
[
read-bencode
]
with-file-reader
;
USING:
bittorrent
io.pathnames
kernel
sequences
strings
urls
;
M:
string
load-metainfo
dup
"http"
head?
[
>url
]
[
<pathname>
]
if
load-metainfo
;
USING:
bittorrent
urls
;
M:
url
load-metainfo
http-get-bencode
;