Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| class MyMiddleware | |
| def initialize(app) | |
| @app = app | |
| end | |
| def call(env) | |
| status, headers, body = @app.call(env) | |
| # ... | |
| return [status, headers, body] | |
| end |
| <!DOCTYPE html> | |
| <html lang="..."> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>...</title> | |
| <link rel="search" type="application/opensearchdescription+xml" title="..." href="/opensearch.xml" /> | |
| </head> | |
| <body> | |
| <p>...</p> | |
| </body> |