Skip to content
This repository has been archived by the owner on Feb 9, 2020. It is now read-only.

mndrix/web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Synopsis

:- use_module(library(web), []).

?- web:get('http://www.ndrix.com/hello.txt', codes(Text)).
Text = `Hello from the Internet`.

?- web:get('http://httpbin.org/ip', json(Dict)).
Dict = _{origin: "66.119.58.231"}.

Description

This module helps you perform HTTP operations with as little code as possible. This includes:

  • basic HTTP requests
  • helpful SSL defaults
  • convert HTTP responses from common data formats
    • JSON
    • HTML5

For more complex needs, use http_open or http_client directly.

Installation

Using SWI-Prolog 7.1 or later:

?- pack_install(web).

This module uses semantic versioning.

Source code available and pull requests accepted at http://github.com/mndrix/web

About

Easy web client library for Prolog

Resources

License

Stars

Watchers

Forks

Packages

No packages published