Writing a Python HTTP Server with Tornado (Explained with 4 Examples)

Published: 31 October 2018
on channel: Hussein Nasser
34,720
505

Check out my Online Video Course Python on the Backend to learn more about Python programming on the back end https://www.husseinnasser.com/courses

In this video we will learn how to build a python HTTP server using tornado. We explain 4 ways of serving content and api through python web server. The first method is through direct text return, the second is serving static HTML files, the third way is to obtain the parameters passed by the user as query string and the final way is using resource parameters.

Git hub repo
https://github.com/hnasr/pyweb

How to use the repo:
git clone https://github.com/hnasr/pyweb
cd pyweb
python index.py

Open browser
localhost:8881/
localhost:8881/blog
localhost:8881/isEven?n=12
localhost:8881/tweet/9128

0:00 Intro
2:45 Requirements
4:00 Building the HTTP Server
6:00 Basic request text handler
8:50 Serving static files
10:45 Query parameters get by arguments
13:00 Resource parameters



www.husseinnasser.com/softwareengineering


On this page of the site you can watch the video online Writing a Python HTTP Server with Tornado (Explained with 4 Examples) with a duration of hours minute second in good quality, which was uploaded by the user Hussein Nasser 31 October 2018, share the link with friends and acquaintances, this video has already been watched 34,720 times on youtube and it was liked by 505 viewers. Enjoy your viewing!