code: public static void eachByte(URL url, @ClosureParams(value = SimpleType.class, options = "byte") Closure closure) throws IOException {
          InputStream is = url.openConnection().getInputStream();
          IOGroovyMethods.eachByte(is, closure);
      }
docs: Reads the InputStream from this URL, passing each byte to the given
  closure.  The URL stream will be closed before this method returns.
  
  @param url     url to iterate over
  @param closure closure to apply to each byte
  @throws IOException if an IOException occurs.
  @see IOGroovyMethods#eachByte(java.io.InputStream, groovy.lang.Closure)
  @since 1.0