• Home
  • Raw
  • Download

Lines Matching +full:localhost +full:- +full:test +full:- +full:mac

3 # Use of this source code is governed by a BSD-style license that can be
9 It supports several test URLs, as specified by the handlers in TestPageHandler.
71 b'test:test').decode()
98 """This is the catch-all response handler for requests that aren't handled
100 Note that we specify the content-length as without it the https connection
105 self.send_header('Content-Type', 'text/html')
106 self.send_header('Content-Length', len(contents))
113 """This is the catch-all response handler for CONNECT requests that aren't
119 self.send_header('Content-Type', 'text/html')
120 self.send_header('Content-Length', len(contents))
181 (self.command, path, self.protocol_version)).encode('utf-8'))
186 # HTTP headers are encoded in Latin-1.
188 (name.encode('latin-1'), value.encode('latin-1')))
190 # This is wrong: it will pass through connection-level headers and
192 # our test servers have never supported connection reuse.
248 auth = self.headers.get('Proxy-Authorization', None)
251 self.send_header('Proxy-Authenticate', 'Basic realm="MyRealm1"')
259 """TestServerRunner for the net test servers."""
282 # Work around a bug in Mac OS 10.6. Spawning a WebSockets server
284 # nor servname provided" for localhost:0 on 10.6.
287 host == "localhost" and \
291 # Construct the subjectAltNames for any ad-hoc generated certificates.
362 self.option_parser.add_option('--proxy',
368 self.option_parser.add_option('--basic-auth-proxy',
375 self.option_parser.add_option('--websocket',
381 self.option_parser.add_option('--cert-and-key-file',
386 self.option_parser.add_option('--ssl-client-auth', action='store_true',
389 self.option_parser.add_option('--ssl-client-ca', action='append',
392 'named in the subject of the DER-encoded '
397 self.option_parser.add_option('--file-root-url', default='/files/',
400 self.option_parser.add_option('--ws-basic-auth', action='store_true',
402 help='Enable basic-auth for WebSocket')
403 self.option_parser.add_option('--redirect-connect-to-localhost',
407 'to localhost instead of the requested URL '