Lines Matching refs:start_response

56 def invalid_request(start_response):  argument
58 start_response('405 Method Not Allowed', [('Content-Type', 'text/plain')])
62 def not_found(start_response): argument
64 start_response('404 Not Found', [('Content-Type', 'text/plain')])
68 def redirect(start_response, target): argument
70 start_response('302 Found', [('Location', target)])
158 def return_homepage(environ, start_response): argument
163 start_response('500 Internal Server Error', [('Content-Type', 'text/plain')])
165 start_response('200 OK', [('Content-Type', 'text/html')])
201 def process_pyro_request(environ, path, parameters, start_response): argument
204 return return_homepage(environ, start_response)
207 return not_found(start_response)
213 start_response('403 Forbidden', [('Content-Type', 'text/plain')])
218 start_response('403 Forbidden', [('Content-Type', 'text/plain')])
236 start_response('200 OK', [('Content-Type', 'application/json; charset=utf-8'),
250 start_response('200 OK', [('Content-Type', 'application/json; charset=utf-8'),
255start_response('500 Internal Server Error', [('Content-Type', 'application/json; charset=utf-8')])
259 start_response('200 OK', [('Content-Type', 'application/json; charset=utf-8'),
266start_response('500 Internal Server Error', [('Content-Type', 'application/json; charset=utf-8')])
271 def pyro_app(environ, start_response): argument
282 return redirect(start_response, "/pyro/")
286 return process_pyro_request(environ, path[5:], parameters, start_response)
288 return invalid_request(start_response)
289 return not_found(start_response)