Home
last modified time | relevance | path

Searched refs:send_header (Results 1 – 25 of 31) sorted by relevance

12

/external/python/cpython2/Lib/
DSimpleHTTPServer.py79 self.send_header("Location", new_url)
100 self.send_header("Content-type", ctype)
102 self.send_header("Content-Length", str(fs[6]))
103 self.send_header("Last-Modified", self.date_time_string(fs.st_mtime))
147 self.send_header("Content-type", "text/html; charset=%s" % encoding)
148 self.send_header("Content-Length", str(length))
DSimpleXMLRPCServer.py515 self.send_header("X-exception", str(e))
516 self.send_header("X-traceback", traceback.format_exc())
518 self.send_header("Content-length", "0")
523 self.send_header("Content-type", "text/xml")
530 self.send_header("Content-Encoding", "gzip")
533 self.send_header("Content-length", str(len(response)))
551 self.send_header("Content-length", "0")
558 self.send_header("Content-type", "text/plain")
559 self.send_header("Content-length", str(len(response)))
DBaseHTTPServer.py366 self.send_header('Connection', 'close')
380 self.send_header("Content-Type", self.error_content_type)
406 self.send_header('Server', self.version_string())
407 self.send_header('Date', self.date_time_string())
409 def send_header(self, keyword, value): member in BaseHTTPRequestHandler
DDocXMLRPCServer.py238 self.send_header("Content-type", "text/html")
239 self.send_header("Content-length", str(len(response)))
/external/python/cpython3/Lib/xmlrpc/
Dserver.py525 self.send_header("X-exception", str(e))
528 self.send_header("X-traceback", trace)
530 self.send_header("Content-length", "0")
534 self.send_header("Content-type", "text/xml")
541 self.send_header("Content-Encoding", "gzip")
544 self.send_header("Content-length", str(len(response)))
562 self.send_header("Content-length", "0")
569 self.send_header("Content-type", "text/plain")
570 self.send_header("Content-length", str(len(response)))
923 self.send_header("Content-type", "text/html")
[all …]
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/python_utils/
Dport_server.py156 self.send_header('Content-Type', 'text/plain')
163 self.send_header('Content-Type', 'text/plain')
178 self.send_header('Content-Type', 'text/plain')
186 self.send_header('Content-Type', 'text/plain')
/external/grpc-grpc/tools/run_tests/python_utils/
Dport_server.py154 self.send_header('Content-Type', 'text/plain')
161 self.send_header('Content-Type', 'text/plain')
176 self.send_header('Content-Type', 'text/plain')
184 self.send_header('Content-Type', 'text/plain')
/external/python/cpython3/Lib/http/
Dserver.py459 self.send_header('Connection', 'close')
477 self.send_header("Content-Type", self.error_content_type)
478 self.send_header('Content-Length', str(len(body)))
494 self.send_header('Server', self.version_string())
495 self.send_header('Date', self.date_time_string())
511 def send_header(self, keyword, value): member in BaseHTTPRequestHandler
691 self.send_header("Location", new_url)
747 self.send_header("Content-type", ctype)
748 self.send_header("Content-Length", str(fs[6]))
749 self.send_header("Last-Modified",
[all …]
/external/autotest/client/site_tests/login_ChromeProfileSanitary/
Dlogin_ChromeProfileSanitary.py24 handler.send_header('Set-Cookie', 'name=value')
25 handler.send_header('Location', url_args['continue'][0])
/external/python/httplib2/python2/httplib2/test/
Dtest_ssl_context.py23 self.send_header("Content-Length", "0")
24 self.send_header("Connection", "keep-alive")
/external/python/cpython2/Lib/test/
Dtest_urllib2_localnet.py101 self.send_header("Content-type", "text/html")
106 self.send_header("WWW-Authenticate", "Basic realm=\"%s\"" % self.REALM)
107 self.send_header("Content-type", "text/html")
185 request_handler.send_header("Content-Type", "text/html")
186 request_handler.send_header(
268 self.send_header("Content-Type", "text/html")
422 self.send_header(header, value % self.port)
424 self.send_header('Content-type', 'text/plain')
Dtest_httpservers.py43 self.send_header('Content-Type', 'text/html')
163 self.send_header('Content-Type', 'text/html')
164 self.send_header('Connection', 'close')
169 self.send_header('Content-Type', 'text/html')
170 self.send_header('Connection', 'keep-alive')
178 self.send_header('Content-Type', 'text/html')
179 self.send_header('Connection', 'close')
Dssl_servers.py105 self.send_header("Content-type", "text/plain; charset=utf-8")
106 self.send_header("Content-Length", str(len(body)))
/external/python/cpython3/Lib/test/
Dtest_urllib2_localnet.py144 request_handler.send_header("Content-Type", "text/html")
145 request_handler.send_header(
220 self.send_header("Content-type", "text/html")
225 self.send_header("WWW-Authenticate", "Basic realm=\"%s\"" % self.REALM)
226 self.send_header("Content-type", "text/html")
270 self.send_header("Content-Type", "text/html")
426 self.send_header(header, value % {'port':self.port})
428 self.send_header("Content-type", "text/plain")
Dssl_servers.py105 self.send_header("Content-type", "text/plain; charset=utf-8")
106 self.send_header("Content-Length", str(len(body)))
Dtest_httpservers.py93 self.send_header('Content-Type', 'text/html')
94 self.send_header('Connection', 'close')
99 self.send_header('Content-Type', 'text/html')
100 self.send_header('Connection', 'keep-alive')
115 self.send_header('Content-Type', 'text/html')
116 self.send_header('Connection', 'close')
121 self.send_header('X-Special', 'Dängerous Mind')
122 self.send_header('Connection', 'close')
866 self.send_header('Content-Type', 'text/html')
1031 handler.send_header('Foo', 'foo')
[all …]
/external/clang/tools/scan-view/share/
DScanView.py722 self.send_header("Content-type", ctype)
724 self.send_header("Content-Length", str(fs[6]))
725 self.send_header("Last-Modified", self.date_time_string(fs.st_mtime))
732 self.send_header("Content-type", ctype)
733 self.send_header("Content-Length", str(len(s)))
736 self.send_header("Last-Modified", self.date_time_string(mtime))
/external/llvm-project/clang/tools/scan-view/share/
DScanView.py739 self.send_header("Content-type", ctype)
741 self.send_header("Content-Length", str(fs[6]))
742 self.send_header("Last-Modified", self.date_time_string(fs.st_mtime))
750 self.send_header("Content-type", ctype)
751 self.send_header("Content-Length", str(len(encoded_s)))
754 self.send_header("Last-Modified", self.date_time_string(mtime))
/external/llvm-project/llvm/tools/sancov/
Dcoverage-report-server.py135 self.send_header("Content-type", "text/html; charset=utf-8")
161 self.send_header("Content-type", "text/html; charset=utf-8")
/external/autotest/client/cros/cellular/
Dtest_endpoint.py36 self.send_header('Content-type', 'application/octet-stream')
/external/grpc-grpc/test/core/http/
Dtest_server.py39 self.send_header('Content-Type', 'text/html')
/external/python/oauth2client/oauth2client/
Dtools.py126 self.send_header("Content-type", "text/html")
/external/autotest/client/site_tests/platform_MetricsUploader/
Dplatform_MetricsUploader.py44 self.send_header('Content-type', 'text/html')
/external/python/cpython3/Doc/library/
Dhttp.server.rst161 header (using :meth:`send_header`) in all of its responses to clients.
228 intend to send any other headers using the :meth:`send_header` method,
236 .. method:: send_header(keyword, value)
241 specifying its value. Note that, after the send_header calls are done,
/external/perfetto/tools/
Drecord_android_trace40 self.send_header('Access-Control-Allow-Origin', '*')

12