Home
last modified time | relevance | path

Searched refs:putheader (Results 1 – 19 of 19) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_httplib.py185 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 …]
Dtest_xmlrpc.py796 connection.putheader("Content-Encoding", "gzip")
1074 conn.putheader("X-Test", "test_custom_user_agent")
1084 conn.putheader("X-Test", "test_send_host")
1094 conn.putheader("X-Test", "test_send_request")
1103 conn.putheader("X-Test", "test_send_content")
Dtest_httpservers.py251 self.con.putheader('Connection', 'close')
259 self.con.putheader('Connection', 'keep-alive')
/external/python/cpython2/Lib/
Dhttplib.py961 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
Durllib.py342 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 …]
Dxmlrpclib.py1412 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/setuptools/setuptools/command/
Dupload_docs.py183 conn.putheader('Content-type', content_type)
184 conn.putheader('Content-length', str(len(body)))
185 conn.putheader('Authorization', auth)
/external/python/cpython3/Lib/http/
Dclient.py1136 self.putheader('Host', netloc_enc)
1157 self.putheader('Host', host_enc)
1160 self.putheader('Host', "%s:%s" % (host_enc, port))
1171 self.putheader('Accept-Encoding', 'identity')
1185 def putheader(self, header, *values): member in HTTPConnection
1263 self.putheader('Transfer-Encoding', 'chunked')
1265 self.putheader('Content-Length', str(content_length))
1270 self.putheader(hdr, value)
/external/python/cpython3/Lib/test/
Dtest_httplib.py228 conn.putheader('Content-length', 42)
231 conn.putheader('Foo', ' bar ')
233 conn.putheader('Bar', '\tbaz\t')
235 conn.putheader('Authorization', 'Bearer mytoken')
237 conn.putheader('IterHeader', 'IterA', 'IterB')
239 conn.putheader('LatinHeader', b'\xFF')
241 conn.putheader('Utf8Header', b'\xc3\x80')
243 conn.putheader('C1-Control', b'next\x85line')
245 conn.putheader('Embedded-Fold-Space', 'is\r\n allowed')
247 conn.putheader('Embedded-Fold-Tab', 'is\r\n\tallowed')
[all …]
Dtest_httpservers.py194 self.con.putheader('Connection', 'close')
202 self.con.putheader('Connection', 'keep-alive')
Dtest_xmlrpc.py1109 connection.putheader("Content-Encoding", "gzip")
/external/python/cpython2/Lib/logging/
Dhandlers.py1115 h.putheader("Host", host)
1117 h.putheader("Content-type",
1119 h.putheader("Content-length", str(len(data)))
/external/python/cpython3/Lib/xmlrpc/
Dclient.py1291 connection.putheader(key, val)
1305 connection.putheader("Content-Encoding", "gzip")
1308 connection.putheader("Content-Length", str(len(request_body)))
/external/python/cpython3/Lib/logging/
Dhandlers.py1187 h.putheader("Content-type",
1189 h.putheader("Content-length", str(len(data)))
1194 h.putheader('Authorization', s)
/external/python/cpython2/Doc/faq/
Dlibrary.rst668 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/
Dhttplib.rst510 .. method:: HTTPConnection.putheader(header, argument[, ...])
Dxmlrpclib.rst603 connection.putheader('Host', self.realhost)
/external/python/cpython3/Doc/library/
Dhttp.client.rst370 .. method:: HTTPConnection.putheader(header, argument[, ...])
/external/python/cpython2/Misc/NEWS.d/
D2.7a1.rst4608 httplib.HTTPConnection.putheader() now accepts an arbitrary number of values