Book Image

Mastering Julia

Book Image

Mastering Julia

Overview of this book

Table of Contents (17 chapters)
Mastering Julia
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Working with the Web


The World Wide Web (WWW) has become a popular medium to return information. Initially this was for web browsers as a result of CGI or server-side scripting, but recently it has been for more generalized services. We saw an example of the latter with the use of REST in conjunction with the CouchDB document database.

In addition to browsers being almost universally available, we noted that most firewalls are configured to permit the traffic of HTML data. Also, programs such as wget and curl can be used to query web servers in the absence of a browser.

In this section, we will consider Julia's approach and in particular to the facilities available under the group heading, JuliaWeb.

A TCP web service

Essentially, a web server is functionally little different from the echo server developed in the previous section. After some initial set up, it grabs a socket on which to listen and runs asynchronously, waiting for a connection that it then services.

What is different is that the...