MCPcopy Index your code
hub / github.com/RustPython/RustPython / _read_and_discard_trailer

Method _read_and_discard_trailer

Lib/http/client.py:558–570  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

556 raise
557
558 def _read_and_discard_trailer(self):
559 # read and discard trailer up to the CRLF terminator
560 ### note: we shouldn't have any trailers!
561 while True:
562 line = self.fp.readline(_MAXLINE + 1)
563 if len(line) > _MAXLINE:
564 raise LineTooLong("trailer line")
565 if not line:
566 # a vanishingly small number of sites EOF without
567 # sending the trailer
568 break
569 if line in (b'\r\n', b'\n', b''):
570 break
571
572 def _get_chunk_left(self):
573 # return self.chunk_left, reading a new chunk if necessary.

Callers 1

_get_chunk_leftMethod · 0.95

Calls 3

lenFunction · 0.85
LineTooLongClass · 0.85
readlineMethod · 0.45

Tested by

no test coverage detected