Searched refs:putheader (Results 1 – 11 of 11) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_httplib.py | 185 conn.putheader('Content-length',42) 188 conn.putheader('Foo', ' bar ') 190 conn.putheader('Bar', '\tbaz\t') 192 conn.putheader('Authorization', 'Bearer mytoken') 194 conn.putheader('IterHeader', 'IterA', 'IterB') 196 conn.putheader('LatinHeader', b'\xFF') 198 conn.putheader('Utf8Header', b'\xc3\x80') 200 conn.putheader('C1-Control', b'next\x85line') 202 conn.putheader('Embedded-Fold-Space', 'is\r\n allowed') 204 conn.putheader('Embedded-Fold-Tab', 'is\r\n\tallowed') [all …]
|
D | test_xmlrpc.py | 796 connection.putheader("Content-Encoding", "gzip") 1078 conn.putheader("X-Test", "test_custom_user_agent") 1088 conn.putheader("X-Test", "test_send_host") 1098 conn.putheader("X-Test", "test_send_request") 1107 conn.putheader("X-Test", "test_send_content")
|
D | test_httpservers.py | 250 self.con.putheader('Connection', 'close') 258 self.con.putheader('Connection', 'keep-alive')
|
/external/python/cpython2/Lib/ |
D | httplib.py | 961 self.putheader('Host', netloc_enc) 978 self.putheader('Host', host_enc) 980 self.putheader('Host', "%s:%s" % (host_enc, port)) 991 self.putheader('Accept-Encoding', 'identity') 1005 def putheader(self, header, *values): member in HTTPConnection 1065 self.putheader('Content-Length', thelen) 1081 self.putheader(hdr, value) 1166 self.putheader = conn.putheader
|
D | urllib.py | 342 h.putheader('Content-Type', 'application/x-www-form-urlencoded') 343 h.putheader('Content-Length', '%d' % len(data)) 346 if proxy_auth: h.putheader('Proxy-Authorization', 'Basic %s' % proxy_auth) 347 if auth: h.putheader('Authorization', 'Basic %s' % auth) 348 if realhost: h.putheader('Host', realhost) 349 for args in self.addheaders: h.putheader(*args) 434 h.putheader('Content-Type', 436 h.putheader('Content-Length', '%d' % len(data)) 439 if proxy_auth: h.putheader('Proxy-Authorization', 'Basic %s' % proxy_auth) 440 if auth: h.putheader('Authorization', 'Basic %s' % auth) [all …]
|
D | xmlrpclib.py | 1412 connection.putheader("Accept-Encoding", "gzip") 1432 connection.putheader(key, value) 1440 connection.putheader("User-Agent", self.user_agent) 1449 connection.putheader("Content-Type", "text/xml") 1455 connection.putheader("Content-Encoding", "gzip") 1458 connection.putheader("Content-Length", str(len(request_body)))
|
/external/python/cpython2/Lib/logging/ |
D | handlers.py | 1100 h.putheader("Host", host) 1102 h.putheader("Content-type", 1104 h.putheader("Content-length", str(len(data)))
|
/external/python/cpython2/Doc/faq/ |
D | library.rst | 668 httpobj.putheader('Accept', '*/*') 669 httpobj.putheader('Connection', 'Keep-Alive') 670 httpobj.putheader('Content-type', 'application/x-www-form-urlencoded') 671 httpobj.putheader('Content-length', '%d' % len(qs))
|
/external/python/cpython2/Doc/library/ |
D | httplib.rst | 510 .. method:: HTTPConnection.putheader(header, argument[, ...])
|
D | xmlrpclib.rst | 603 connection.putheader('Host', self.realhost)
|
/external/python/cpython2/Misc/ |
D | NEWS | 8677 - httplib.HTTPConnection.putheader() now accepts an arbitrary number of values
|