March 2019
Beginner
490 pages
12h 40m
English
Tornado has several classes and functions that allow you to create different types of network elements, both synchronous and asynchronous. In this particular case, we will focus on the module that allows for the creation of servers and web applications with Tornado. This will be useful to perform proof of concept and understand the operation of certain features in web environments.
The following script will allow for the creation of a basic web server using Tornado, which will accept normal HTTP connections if the user requests the '/' resource.
You can find the following code in the tornado_web_server.py file:
#!/usr/bin/python3import tornado.ioloopimport tornado.webfrom tornado.options import define, ...
Read now
Unlock full access