Skip to Content
Hands-On RESTful Python Web Services - Second Edition
book

Hands-On RESTful Python Web Services - Second Edition

by Gastón C. Hillar
December 2018
Intermediate to advanced
500 pages
12h 33m
English
Packt Publishing
Content preview from Hands-On RESTful Python Web Services - Second Edition

Test your knowledge

Let's see whether you can answer the following questions correctly:

  1. Which of the following methods allows us to set the HTTP status code for a response in a subclass of tornado.web.RequestHandler?
    1. self.write_status
    2. self.__cls__.write_status_code
    3. self.set_satus
  1. Which of the following methods allows us to write the response in a subclass of tornado.web.RequestHandler?
    1. self.write_response
    2. self.write
    3. self.set_response
  1. The main building blocks for a RESTful API in Tornado are subclasses of which of the following classes?
    1. tornado.web.GenericHandler
    2. tornado.web.RequestHandler
    3. tornado.web.IncomingHTTPRequestHandler
  1. If we just want to support the GET and PATCH methods, we can override the SUPPORTED_METHODS class ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building RESTful Python Web Services

Building RESTful Python Web Services

Gastón C. Hillar
Python Command Line Tools

Python Command Line Tools

Alfredo Deza, Noah Gift

Publisher Resources

ISBN: 9781789532227Supplemental Content