May 2019
Beginner to intermediate
466 pages
10h 44m
English
Pkg, Julia's built-in package manager, provides access to the excellent HTTP package. It exposes a powerful functionality for building web clients and servers—and we'll use it extensively.
As you're already accustomed to, extra functionality is only two commands away—pkg> add HTTP and julia> using HTTP.
Recall our discussion about HTTP methods from the previous section; the most important ones were GET, used to ask for a resource from the server, and POST, which sends a data payload to the server and accepts the response. The HTTP package exposes a matching set of functions—we get access to HTTP.get, HTTP.post, HTTP.delete, HTTP.put, and so on.
Let's say we want to request Julia's Wikipedia page. All ...
Read now
Unlock full access