740
740
httpbody - string with http body)
741
741
http_rest - what is left in the message after a full HTTP header + body
747
745
# no complete http message. Keep filling the buffer until we find one
749
747
return ('', '', '', buffer_rest)
751
749
(header, httpbody) = splitted[:2]
752
752
header = header.split('\n')
753
753
statusline = header[0].split(' ', 2)