parameters: (self, size=None)
return_statement: return b''.join(chunks)
docstring: Read a line from the request body and return it.
docstring_summary: Read a line from the request body and return it.
docstring_tokens: Read a line from the request body and return it .
function: def readline(self, size=None):
          """Read a line from the request body and return it."""
          chunks = []
          while size is None or size > 0:
              chunksize = self.bufsize
              if size is not None and size < self.bufsize:
                  chunksize = size
              data = self.read(chunksize)
              if not data:
                  break
              pos = data.find(b'\n') + 1
              if pos:
                  chunks.append(data[:pos])
                  remainder = data[pos:]
                  self.buffer += remainder
                  self.bytes_read -= len(remainder)
                  break
              else:
                  chunks.append(data)
          return b''.join(chunks)
function_tokens: def readline ( self , size = None ) : chunks = [ ] while size is None or size > 0 : chunksize = self . bufsize if size is not None and size < self . bufsize : chunksize = size data = self . read ( chunksize ) if not data : break pos = data . find ( b'\n' ) + 1 if pos : chunks . append ( data [ : pos ] ) remainder = data [ pos : ] self . buffer += remainder self . bytes_read -= len ( remainder ) break else : chunks . append ( data ) return b'' . join ( chunks )