mirror of
https://github.com/sprockets/sprockets.mixins.http.git
synced 2024-11-14 19:29:31 +00:00
commit
ca977563ad
1 changed files with 2 additions and 4 deletions
|
@ -50,11 +50,10 @@ This examples demonstrates the most basic usage of ``sprockets.mixins.http``
|
|||
if not response.ok:
|
||||
self.set_status(response.code)
|
||||
self.write(response.body)
|
||||
self.finish()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = web.Application([web.url(r'/', RequestHandler)])
|
||||
app = web.Application([(r'/', RequestHandler)])
|
||||
app.listen(8000)
|
||||
ioloop.IOLoop.current().start()
|
||||
|
||||
|
@ -78,11 +77,10 @@ As with Tornado, to use the curl client which has numerous benefits:
|
|||
if not response.ok:
|
||||
self.set_status(response.code)
|
||||
self.write(response.body)
|
||||
self.finish()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = web.Application([web.url(r'/', RequestHandler)])
|
||||
app = web.Application([(r'/', RequestHandler)])
|
||||
app.listen(8000)
|
||||
ioloop.IOLoop.current().start()
|
||||
|
||||
|
|
Loading…
Reference in a new issue