sourceafFandocViewer::InternetResource.fan

using flux::Resource
using gfx::Image

** A Flux wrapper around an Internet URI, as resolved by `InternetScheme`.
class InternetResource : Resource {
    override Uri uri
    
    new make(Uri uri) { this.uri = uri }

    override Str name() { 
        uri.toStr 
    }
    
    ** Firefox icon!
    override Image icon() {
        Image(InternetResource#.pod.uri + `/res/icons/icoFirefox.png`)
    }
}