Home
last modified time | relevance | path

Searched refs:request_handler (Results 1 – 9 of 9) sorted by relevance

/external/python/oauth2client/oauth2client/contrib/
Dappengine.py435 def _build_state_value(request_handler, user): argument
448 uri = request_handler.request.url
607 def _display_error_message(self, request_handler): argument
608 request_handler.response.out.write('<html><body>')
609 request_handler.response.out.write(_safe_html(self._message))
610 request_handler.response.out.write('</body></html>')
623 def check_oauth(request_handler, *args, **kwargs): argument
625 self._display_error_message(request_handler)
632 request_handler.redirect(users.create_login_url(
633 request_handler.request.uri))
[all …]
/external/python/cpython2/Lib/test/
Dtest_urllib2_localnet.py56 def __init__(self, request_handler): argument
60 request_handler.protocol_version = "HTTP/1.0"
62 request_handler)
183 def _return_auth_challenge(self, request_handler): argument
184 request_handler.send_response(407, "Proxy Authentication Required")
185 request_handler.send_header("Content-Type", "text/html")
186 request_handler.send_header(
194 request_handler.end_headers()
195 request_handler.wfile.write("Proxy Authentication Required.")
198 def handle_request(self, request_handler): argument
[all …]
Dtest_httpservers.py52 def __init__(self, test_object, request_handler): argument
54 self.request_handler = request_handler
58 self.server = HTTPServer(('', 0), self.request_handler)
77 self.thread = TestServerThread(self, self.request_handler)
157 class request_handler(NoLogRequestHandler, BaseHTTPRequestHandler): class in BaseHTTPServerTestCase
320 class request_handler(NoLogRequestHandler, SimpleHTTPRequestHandler): class in SimpleHTTPServerTestCase
455 class request_handler(NoLogRequestHandler, CGIHTTPRequestHandler): class in CGIHTTPServerTestCase
/external/python/cpython3/Lib/test/
Dtest_urllib2_localnet.py57 def __init__(self, request_handler): argument
61 request_handler.protocol_version = "HTTP/1.0"
63 request_handler)
142 def _return_auth_challenge(self, request_handler): argument
143 request_handler.send_response(407, "Proxy Authentication Required")
144 request_handler.send_header("Content-Type", "text/html")
145 request_handler.send_header(
153 request_handler.end_headers()
154 request_handler.wfile.write(b"Proxy Authentication Required.")
157 def handle_request(self, request_handler): argument
[all …]
Dtest_httpservers.py45 def __init__(self, test_object, request_handler): argument
47 self.request_handler = request_handler
51 self.server = HTTPServer(('localhost', 0), self.request_handler)
70 self.thread = TestServerThread(self, self.request_handler)
87 class request_handler(NoLogRequestHandler, BaseHTTPRequestHandler): class in BaseHTTPServerTestCase
294 class request_handler(BaseHTTPRequestHandler): class in RequestHandlerLoggingTestCase
330 class request_handler(NoLogRequestHandler, SimpleHTTPRequestHandler): class in SimpleHTTPServerTestCase
602 class request_handler(NoLogRequestHandler, CGIHTTPRequestHandler): class in CGIHTTPServerTestCase
/external/python/cpython2/Lib/wsgiref/
Dsimple_server.py32 self.request_handler.log_request(
130 handler.request_handler = self # backpointer for logging
/external/python/cpython3/Lib/wsgiref/
Dsimple_server.py34 self.request_handler.log_request(
133 handler.request_handler = self # backpointer for logging
/external/python/httplib2/tests/
D__init__.py401 def server_request(request_handler, **kwargs): argument
413 response = request_handler(request=request)
/external/python/oauth2client/tests/contrib/
Dtest_appengine.py845 request_handler = MockRequestHandler()
846 decorator._create_flow(request_handler)