Home
last modified time | relevance | path

Searched refs:has_header (Results 1 – 25 of 26) sorted by relevance

12

/external/python/cpython3/Lib/test/
Dtest_urllib2.py121 self.assertTrue(req.has_header("Spam-eggs"))
127 self.assertFalse(req.has_header("Not-there"))
132 self.assertFalse(req.has_header("Spam-eggs"))
135 self.assertTrue(req.has_header("Unredirected-spam"))
138 self.assertFalse(req.has_header("Unredirected-spam"))
518 if req.has_header('Authorization'):
941 self.assertFalse(newreq.has_header('Content-length'))
947 self.assertFalse(newreq.has_header("Transfer-encoding"))
962 self.assertFalse(newreq.has_header('Content-length'))
968 self.assertFalse(newreq.has_header("Transfer-encoding"))
[all …]
Dtest_http_cookiejar.py947 self.assertFalse(req.has_header("Cookie"))
971 self.assertTrue(req.has_header("Cookie"))
972 self.assertTrue(req.has_header("Cookie2"))
987 self.assertFalse(req.has_header("Cookie"))
1000 self.assertTrue(req.has_header("Cookie"))
1005 self.assertFalse(req.has_header("Cookie"))
1010 self.assertFalse(req.has_header("Cookie"))
1014 self.assertFalse(req.has_header("Cookie"))
1053 self.assertTrue(req.has_header("Cookie"))
Dtest_csv.py979 self.assertEqual(sniffer.has_header(self.sample1), False)
980 self.assertEqual(sniffer.has_header(self.header1 + self.sample1),
985 self.assertEqual(sniffer.has_header(self.sample8), False)
986 self.assertEqual(sniffer.has_header(self.header2 + self.sample8),
Dtest_urllib2net.py183 self.assertTrue(request.has_header('User-agent'))
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Drtc_event_log_source.cc44 !rtp_packet.has_header() || rtp_packet.header().size() == 0 || in GetRtpPacket()
/external/python/cpython2/Lib/
Durllib2.py322 def has_header(self, header_name): member in Request
1130 if not request.has_header('Content-type'):
1134 if not request.has_header('Content-length'):
1143 if not request.has_header('Host'):
1147 if not request.has_header(name):
Dcsv.py387 def has_header(self, sample): member in Sniffer
Dcookielib.py1344 if not request.has_header("Cookie"):
1350 not request.has_header("Cookie2")):
/external/python/cpython3/Lib/urllib/
Drequest.py373 if self.has_header("Content-length"):
415 def has_header(self, header_name): member in Request
999 if not req.has_header('Authorization'):
1248 if not request.has_header('Content-type'):
1252 if (not request.has_header('Content-length')
1253 and not request.has_header('Transfer-encoding')):
1266 if not request.has_header('Host'):
1270 if not request.has_header(name):
1317 encode_chunked=req.has_header('Transfer-encoding'))
/external/python/cpython2/Lib/test/
Dtest_cookielib.py896 self.assertFalse(req.has_header("Cookie"))
923 self.assertTrue(req.has_header("Cookie"))
924 self.assertTrue(req.has_header("Cookie2"))
939 self.assertFalse(req.has_header("Cookie"))
983 self.assertTrue(req.has_header("Cookie"))
Dtest_csv.py1029 self.assertEqual(sniffer.has_header(self.sample1), False)
1030 self.assertEqual(sniffer.has_header(self.header1 + self.sample1),
1035 self.assertEqual(sniffer.has_header(self.sample8), False)
1036 self.assertEqual(sniffer.has_header(self.header2 + self.sample8),
Dtest_urllib2net.py182 self.assertTrue(request.has_header('User-agent'))
Dtest_urllib2.py1030 self.assertTrue(not hh.req.has_header("Cookie"))
1250 self.assertFalse(http_handler.requests[0].has_header(auth_header))
1263 self.assertFalse(http_handler.requests[0].has_header(auth_header))
/external/webrtc/webrtc/call/
Drtc_event_log2rtp_dump.cc123 event.rtp_packet().has_header() && in main()
Drtc_event_log_unittest.cc240 ASSERT_TRUE(rtp_packet.has_header()); in VerifyRtpEvent()
/external/e2fsprogs/lib/ext2fs/
Dswapfs.c209 void ext2fs_swap_ext_attr(char *to, char *from, int bufsize, int has_header) in ext2fs_swap_ext_attr() argument
221 if (has_header) { in ext2fs_swap_ext_attr()
Dext2fs.h1684 int has_header);
/external/python/cpython3/Lib/
Dcsv.py384 def has_header(self, sample): member in Sniffer
/external/python/cpython3/Lib/http/
Dcookiejar.py1360 if not request.has_header("Cookie"):
1366 not request.has_header("Cookie2")):
/external/python/cpython3/Doc/library/
Dcsv.rst264 .. method:: has_header(sample)
Dhttp.cookiejar.rst158 :meth:`get_type`, :meth:`unverifiable`, :meth:`has_header`,
/external/elfutils/src/
Dreadelf.c10222 bool has_header; in print_debug_str_offsets_section() local
10234 has_header = false; in print_debug_str_offsets_section()
10241 has_header = cu->version > 4; in print_debug_str_offsets_section()
10249 has_header = cu->version > 4; in print_debug_str_offsets_section()
10258 has_header = true; in print_debug_str_offsets_section()
10269 if (has_header) in print_debug_str_offsets_section()
/external/python/cpython2/Doc/library/
Dcsv.rst265 .. method:: has_header(sample)
Dcookielib.rst164 :meth:`unverifiable`, :meth:`get_origin_req_host`, :meth:`has_header`,
Durllib2.rst389 .. method:: Request.has_header(header)

12