IOBuffer buf)
throws IOException {
if (parsing_http_) {
LineReader reader = new IOBufferLineReader(buf, baos, READLINE_LIMIT);
String line;
while ((line = reader.readLine()) != null) {
parser.parse(line, this);
if (requestMethod == null) {
// if no method was specified on the request line, check to
// see if the line is entirely whitespace, in which case we
// just ignore it.