Fix HTTP Server example

The previous example could not be used as-is (`headers` and `str` were not declared).