]> Repositorios git - scryer-prolog.git/commit
ADDED: library(http/http_open), opening HTTP and HTTPS streams for reading
authorMarkus Triska <[email protected]>
Sat, 13 Jun 2020 07:32:08 +0000 (09:32 +0200)
committerMarkus Triska <[email protected]>
Wed, 17 Jun 2020 18:10:22 +0000 (20:10 +0200)
commit19acd608a5b53348716aac2db644f8da629182d4
treef08eb4ea6b9fffd47a139c513346f2d30f9c61fc
parentbc81ff28d8923891e585959b06e2edeeb3c19883
ADDED: library(http/http_open), opening HTTP and HTTPS streams for reading

Example:

   ?- http_open("https://github.com/mthom/scryer-prolog", Stream, []),
      length(Ls, 10),
      maplist(get_char(Stream), Ls).

Yielding:

   %@    Stream = '$stream'(0x7fba4c59ef10), Ls = "\n\n\n\n\n<!DOC"
   %@ ;  false.
README.md
src/lib/http/http_open.pl [new file with mode: 0644]