Course of Raku / Functional, concurrent, reactive, and web programming / Web programming
Making remote connections
The last subpart of the course turns to web programming — talking to other machines over the network. We build up from the bottom: a raw network connection, then a simple HTTP client, a simple HTTP server, and finally a glimpse of the Cro framework.
Unlike the rest of the course, these examples need a network connection to run, and the later ones need modules you install yourself. The code is written to compile and to work when you run it against a real server, but its output cannot be shown the way the offline examples can. Each page notes what it needs.
We begin with the foundation of all network code: a socket, the two-way pipe between two programs across a network.
Topics in this section
Practice
Complete the quiz that covers the contents of this section.
Exercises
This section contains 2 exercises. Examine all the topics of this section before doing the coding practice.