tornado.web.GenericHandler
tornado.web.RequestHandler
tornado.web.IncomingHTTPRequestHandler
GET
and PATCH
methods, we can override the SUPPORTED_METHODS
class variable with which of the following values:("GET", "PATCH")
{0: "GET", 1: "PATCH"}
{"GET": True, "PATCH": True, "POST": False, "PUT": False}
tornado.Web.Application
constructor is composed of:regexp
) and a tornado.web.RequestHandler
subclass (request_class
).regexp
) and a tornado.web.GenericHandler
subclass (request_class
).regexp
) and a tornado.web.IncomingHTTPRequestHandler
subclass (request_class
).
self.write
method with a dictionary as an argument in a request handler, Tornado:Content-Type
header to application/json
.json.dumps
method and set the value of the Content-Type
header to application/json
.Content-Type
header to application/json
.
tornado.escape.json_decode
method with self.request.body
as an argument in a request handler:
18.220.245.233