code: public static <T> T eachLine(URL url, int firstLine, @ClosureParams(value = FromString.class, options = {"String", "String,Integer"}) Closure<T> closure) throws IOException {
          return IOGroovyMethods.eachLine(url.openConnection().getInputStream(), firstLine, closure);
      }
docs: Iterates through the lines read from the URL's associated input stream passing each
  line to the given 1 or 2 arg closure. The stream is closed before this method returns.
  
  @param url       a URL to open and read
  @param firstLine the line number value used for the first line (default is 1, set to 0 to start counting from 0)
  @param closure   a closure to apply on each line (arg 1 is line, optional arg 2 is line number)
  @return the last value returned by the closure
  @throws IOException if an IOException occurs.
  @see IOGroovyMethods#eachLine(java.io.InputStream, int, groovy.lang.Closure)
  @since 1.5.7