一层一层说网站PYTHONWSGI简介及常用中间件着名的洋葱请求.PPT

一层一层说网站PYTHONWSGI简介及常用中间件着名的洋葱请求.PPT

一层一层说网站PYTHONWSGI简介及常用中间件着名的洋葱请求

一层一层说网站 著名的洋葱 请求(Request)的构成 响应Response 构成 HTTP/1.1 200 OK Server: nginx/0.7.65 Date: Wed, 28 Jul 2010 10:24:29 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Content-Encoding: gzip Content-Length: 6241 洋葱核 def app(environ, start_response): status = 200 OK response_headers = [ (Content-type,text/plain), ] start_response(status, response_headers) return [Hello] CGI - WSGI /dev/peps/pep-0333/ def run_with_cgi(application): environ = dict(os.environ.items()) environ[wsgi.input] = sys.stdin environ[wsgi.errors]

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档