Lines Matching refs:line

110 # maximal line length when calling readline().
125 # ; obsolete line folding
197 for line in self.keys():
198 if line[:n].lower() == name:
200 elif not line[:1].isspace():
203 lst.append(line)
209 Length of line is limited by _MAXLINE, and number of
214 line = fp.readline(_MAXLINE + 1)
215 if len(line) > _MAXLINE:
216 raise LineTooLong("header line")
217 headers.append(line)
220 if line in (b'\r\n', b'\n', b''):
245 # text following RFC 2047. The basic status line parsing only
279 line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
280 if len(line) > _MAXLINE:
281 raise LineTooLong("status line")
283 print("reply:", repr(line))
284 if not line:
290 version, status, reason = line.split(None, 2)
293 version, status = line.split(None, 1)
300 raise BadStatusLine(line)
306 raise BadStatusLine(line)
308 raise BadStatusLine(line)
526 line = self.fp.readline(_MAXLINE + 1)
527 if len(line) > _MAXLINE:
529 i = line.find(b";")
531 line = line[:i] # strip chunk-extensions
533 return int(line, 16)
544 line = self.fp.readline(_MAXLINE + 1)
545 if len(line) > _MAXLINE:
546 raise LineTooLong("trailer line")
547 if not line:
551 if line in (b'\r\n', b'\n', b''):
914 # Making a single send() call instead of one per line encourages
928 line = response.fp.readline(_MAXLINE + 1)
929 if len(line) > _MAXLINE:
930 raise LineTooLong("header line")
931 if not line:
934 if line in (b'\r\n', b'\n', b''):
938 print('header:', line.decode())
1012 """Add a line of output to the current request buffer.
1014 Assumes that the line does *not* end with \\r\\n.
1243 """Send a request header line to the server.
1271 """Indicate that the last header line has been sent to the server.
1512 def __init__(self, line):
1513 if not line:
1514 line = repr(line)
1515 self.args = line,
1516 self.line = line