cherrypy.tutorial.tut08_generators_and_yield module

Bonus Tutorial: Using generators to return result bodies.

Instead of returning a complete result string, you can use the yield statement to return one result part after another. This may be convenient in situations where using a template package like CherryPy or Cheetah would be overkill, and messy string concatenation too uncool. ;-)

class cherrypy.tutorial.tut08_generators_and_yield.GeneratorDemo[source]

Bases: object

HTTP response streaming app.

footer()[source]

Render HTML layout footer.

header()[source]

Render HTML layout header.

index()[source]

Stream HTTP response body of generator app index URI.