code: private static void checkLineFeed(final InputStream input,
          final ByteArrayOutputStream baos, final Integer position)
          throws IOException {
          if (input.read() != '\n') {
              throw new HttpException(
                  HttpURLConnection.HTTP_BAD_REQUEST,
                  String.format(
                      "there is no LF after CR in header, line #%d: \"%s\"",
                      position,
                      new Utf8String(baos.toByteArray()).asString()
                  )
              );
          }
      }
docs: Checks whether or not the next byte to read is a Line Feed.
  <p><i>Please note that this method assumes that the previous byte read
  was a Carriage Return.</i>
  @param input The input stream to read
  @param baos Current read header
  @param position Header line number
  @throws IOException If the next byte is not a Line Feed as expected