Home
last modified time | relevance | path

Searched refs:send_header (Results 1 – 25 of 28) 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.py524 self.send_header("X-exception", str(e))
527 self.send_header("X-traceback", trace)
529 self.send_header("Content-length", "0")
533 self.send_header("Content-type", "text/xml")
540 self.send_header("Content-Encoding", "gzip")
543 self.send_header("Content-length", str(len(response)))
561 self.send_header("Content-length", "0")
568 self.send_header("Content-type", "text/plain")
569 self.send_header("Content-length", str(len(response)))
922 self.send_header("Content-type", "text/html")
[all …]
/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.py458 self.send_header('Connection', 'close')
476 self.send_header("Content-Type", self.error_content_type)
477 self.send_header('Content-Length', str(len(body)))
493 self.send_header('Server', self.version_string())
494 self.send_header('Date', self.date_time_string())
510 def send_header(self, keyword, value): member in BaseHTTPRequestHandler
684 self.send_header("Location", new_url)
732 self.send_header("Content-type", ctype)
733 self.send_header("Content-Length", str(fs[6]))
734 self.send_header("Last-Modified",
[all …]
/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.py143 request_handler.send_header("Content-Type", "text/html")
144 request_handler.send_header(
219 self.send_header("Content-type", "text/html")
224 self.send_header("WWW-Authenticate", "Basic realm=\"%s\"" % self.REALM)
225 self.send_header("Content-type", "text/html")
269 self.send_header("Content-Type", "text/html")
425 self.send_header(header, value % {'port':self.port})
427 self.send_header("Content-type", "text/plain")
Dtest_httpservers.py91 self.send_header('Content-Type', 'text/html')
92 self.send_header('Connection', 'close')
97 self.send_header('Content-Type', 'text/html')
98 self.send_header('Connection', 'keep-alive')
113 self.send_header('Content-Type', 'text/html')
114 self.send_header('Connection', 'close')
119 self.send_header('X-Special', 'Dängerous Mind')
120 self.send_header('Connection', 'close')
802 self.send_header('Content-Type', 'text/html')
967 handler.send_header('Foo', 'foo')
[all …]
Dssl_servers.py104 self.send_header("Content-type", "text/plain; charset=utf-8")
105 self.send_header("Content-Length", str(len(body)))
/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/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/swiftshader/third_party/llvm-7.0/llvm/tools/sancov/
Dcoverage-report-server.py132 self.send_header("Content-type", "text/html; charset=utf-8")
158 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/cros/update_engine/
Dnano_omaha_devserver.py181 self.send_header('Content-Type', 'application/xml')
/external/autotest/client/site_tests/platform_MetricsUploader/
Dplatform_MetricsUploader.py44 self.send_header('Content-type', 'text/html')
/external/python/cpython3/Doc/library/
Dhttp.server.rst160 header (using :meth:`send_header`) in all of its responses to clients.
227 intend to send any other headers using the :meth:`send_header` method,
235 .. method:: send_header(keyword, value)
240 specifying its value. Note that, after the send_header calls are done,
/external/python/cpython2/Doc/library/
Dbasehttpserver.rst156 header (using :meth:`send_header`) in all of its responses to clients.
214 .. method:: send_header(keyword, value)
/external/v8/tools/
Dgrokdump.py2579 self.send_header("Cache-Control", "no-cache, no-store, must-revalidate")
2580 self.send_header("Pragma", "no-cache")
2581 self.send_header("Expires", "0")
2582 self.send_header('Content-type','text/html')

12