Home
last modified time | relevance | path

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

/third_party/python/Lib/http/
Dclient.py1160 self.putheader('Host', netloc_enc)
1181 self.putheader('Host', host_enc)
1184 self.putheader('Host', "%s:%s" % (host_enc, port))
1195 self.putheader('Accept-Encoding', 'identity')
1238 def putheader(self, header, *values): member in HTTPConnection
1316 self.putheader('Transfer-Encoding', 'chunked')
1318 self.putheader('Content-Length', str(content_length))
1323 self.putheader(hdr, value)
/third_party/python/Lib/test/
Dtest_httplib.py235 conn.putheader('Content-length', 42)
238 conn.putheader('Foo', ' bar ')
240 conn.putheader('Bar', '\tbaz\t')
242 conn.putheader('Authorization', 'Bearer mytoken')
244 conn.putheader('IterHeader', 'IterA', 'IterB')
246 conn.putheader('LatinHeader', b'\xFF')
248 conn.putheader('Utf8Header', b'\xc3\x80')
250 conn.putheader('C1-Control', b'next\x85line')
252 conn.putheader('Embedded-Fold-Space', 'is\r\n allowed')
254 conn.putheader('Embedded-Fold-Tab', 'is\r\n\tallowed')
[all …]
Dtest_httpservers.py198 self.con.putheader('Connection', 'close')
206 self.con.putheader('Connection', 'keep-alive')
Dtest_xmlrpc.py1172 connection.putheader("Content-Encoding", "gzip")
/third_party/python/Lib/xmlrpc/
Dclient.py1303 connection.putheader(key, val)
1317 connection.putheader("Content-Encoding", "gzip")
1320 connection.putheader("Content-Length", str(len(request_body)))
/third_party/python/Lib/logging/
Dhandlers.py1248 h.putheader("Content-type",
1250 h.putheader("Content-length", str(len(data)))
1255 h.putheader('Authorization', s)
/third_party/python/Doc/library/
Dhttp.client.rst401 .. method:: HTTPConnection.putheader(header, argument[, ...])