Home
last modified time | relevance | path

Searched refs:getheader (Results 1 – 25 of 53) sorted by relevance

123

/external/python/cpython2/Lib/test/
Dtest_httpservers.py272 self.assertEqual(res.getheader('Connection'), 'keep-alive')
292 self.assertEqual(None, res.getheader('Content-Length'))
293 self.assertEqual(None, res.getheader('Content-Type'))
295 self.assertEqual(None, res.getheader('Transfer-Encoding'))
307 self.assertEqual(None, res.getheader('Content-Length'))
308 self.assertIn('text/html', res.getheader('Content-Type'))
310 self.assertEqual(None, res.getheader('Content-Length'))
311 self.assertEqual(None, res.getheader('Content-Type'))
313 self.assertEqual(None, res.getheader('Transfer-Encoding'))
369 self.assertEqual(response.getheader("Location"),
[all …]
Dtest_httplib.py241 self.assertEqual(resp.getheader('First'), 'val')
242 self.assertEqual(resp.getheader('Second'), 'val')
258 self.assertIsNotNone(resp.getheader('Public-Key-Pins'))
259 self.assertEqual(resp.getheader('Transfer-Encoding'), 'chunked')
271 self.assertEqual(resp.getheader('Transfer-Encoding'), 'chunked')
292 self.assertEqual(resp.getheader('Transfer-Encoding'), 'chunked')
318 self.assertIsNotNone(resp.getheader('Name'))
319 self.assertEqual(resp.getheader('Transfer-Encoding'), 'chunked')
348 self.assertEqual(resp.getheader('Content-Length'), '0')
349 self.assertEqual(resp.getheader("!#$%&'*+-.^_`|~"), 'value')
[all …]
Dtest_docxmlrpc.py83 self.assertEqual(response.getheader("Content-type"), "text/html")
93 self.assertEqual(response.getheader("Content-type"), "text/plain")
Dtest_rfc822.py254 eq(msg.getheader('First'), 'val')
255 eq(msg.getheader('Second'), 'val2')
Dtest_mhlib.py323 eq(msg.getheader('From'), "Mrs. Premise")
324 eq(msg.getheader('To'), "Mrs. Conclusion")
/external/python/cpython3/Lib/test/
Dtest_httpservers.py215 self.assertEqual(res.getheader('Connection'), 'keep-alive')
233 self.assertTrue(int(res.getheader('Content-Length')))
240 self.assertEqual(res.getheader('X-Special'), 'Dängerous Mind')
250 self.assertEqual(int(res.getheader('Content-Length')), len(data))
261 self.assertEqual(None, res.getheader('Content-Length'))
262 self.assertEqual(None, res.getheader('Content-Type'))
264 self.assertEqual(None, res.getheader('Transfer-Encoding'))
279 self.assertTrue(int(res.getheader('Content-Length')) > 0)
280 self.assertIn('text/html', res.getheader('Content-Type'))
282 self.assertEqual(None, res.getheader('Content-Length'))
[all …]
Dtest_httplib.py284 self.assertEqual(resp.getheader('First'), 'val')
285 self.assertEqual(resp.getheader('Second'), 'val')
303 self.assertEqual(resp.getheader('Content-Length'), '0')
305 self.assertEqual(resp.getheader("!#$%&'*+-.^_`|~"), 'value')
308 self.assertEqual(resp.getheader('VCHAR'), vchar)
310 self.assertIsNotNone(resp.getheader('obs-text'))
312 for folded in (resp.getheader('obs-fold'), resp.msg['obs-fold']):
669 cookies = r.getheader("Set-Cookie")
959 resp.getheader("www-authenticate"))
1603 self.assertIn('nginx', resp.getheader('server'))
[all …]
Dtest_docxmlrpc.py93 self.assertEqual(response.getheader("Content-type"), "text/html")
103 self.assertEqual(response.getheader("Content-type"), "text/plain")
/external/zlib/src/contrib/untgz/
Duntgz.c391 int getheader = 1; in tar() local
420 if (getheader >= 1) in tar()
438 if (getheader == 1) in tar()
451 getheader = 1; in tar()
501 getheader = 0; in tar()
519 getheader = 2; in tar()
547 getheader = 1; in tar()
/external/python/cpython2/Lib/
DCGIHTTPServer.py172 authorization = self.headers.getheader("authorization")
192 length = self.headers.getheader('content-length')
195 referer = self.headers.getheader('referer')
205 ua = self.headers.getheader('user-agent')
Dhttplib.py479 tr_enc = self.msg.getheader('transfer-encoding')
491 length = self.msg.getheader('content-length')
518 conn = self.msg.getheader('connection')
522 conn = self.msg.getheader('connection')
531 if self.msg.getheader('keep-alive'):
540 pconn = self.msg.getheader('proxy-connection')
698 def getheader(self, name, default=None): member in HTTPResponse
701 return self.msg.getheader(name, default)
Dmimetools.py27 self.getheader('content-transfer-encoding')
29 self.getheader('content-type')
Drfc822.py290 def getheader(self, name, default=None): member in Message
298 get = getheader
990 print 'Subject:', m.getheader('subject')
991 print 'Date:', m.getheader('date')
Dsmtpd.py434 if not msg.getheader('from'):
436 if not msg.getheader('date'):
/external/curl/lib/
Dtransfer.h65 bool getheader, /* TRUE if header parsing is wanted */
Dtransfer.c1877 bool getheader, /* TRUE if header parsing is wanted */ in Curl_setup_transfer() argument
1900 k->getheader = getheader; in Curl_setup_transfer()
1908 if(!k->getheader) { in Curl_setup_transfer()
1914 if(k->getheader || !data->set.opt_no_body) { in Curl_setup_transfer()
/external/python/cpython2/Doc/library/
Drfc822.rst200 .. method:: Message.getheader(name[, default])
212 An alias for :meth:`getheader`, to make the interface more compatible with
219 ``getheader(name)``. If no header matching *name* exists, return ``(None,
243 Retrieve a header using :meth:`getheader` and parse it into a 9-tuple compatible
255 Retrieve a header using :meth:`getheader` and parse it into a 10-tuple; the
262 particular: ``m[name]`` is like ``m.getheader(name)`` but raises :exc:`KeyError`
/external/grpc-grpc/test/core/http/
Dtest_server.py49 content = self.rfile.read(int(self.headers.getheader('content-length')))
/external/python/cpython2/Tools/versioncheck/
Dpyversioncheck.py57 newversion = msg.getheader('current-version')
/external/google-benchmark/
Dmingw.py137 content = stream.getheader('Content-Disposition') or ''
139 content = stream.headers.getheader('Content-Disposition') or ''
/external/libcxx/utils/google-benchmark/
Dmingw.py137 content = stream.getheader('Content-Disposition') or ''
139 content = stream.headers.getheader('Content-Disposition') or ''
/external/python/cpython3/Lib/distutils/
Dconfig.py115 content_type = response.getheader('content-type', 'text/plain')
/external/python/cpython2/Demo/scripts/
Dmboxconvert.py92 'Unparseable date: %r\n' % (m.getheader('Date'),))
/external/owasp/sanitizer/tools/
Dgooglecode_upload.py104 location = resp.getheader('Location', None)
/external/python/cpython2/Lib/wsgiref/
Dsimple_server.py95 length = self.headers.getheader('content-length')

123