move images.http to extra so it can use images.viewer, fix load-http-image

db4
Doug Coleman 2009-09-28 16:12:12 -05:00
parent 63c7652de9
commit 5b924ff910
3 changed files with 11 additions and 7 deletions

View File

@ -1,7 +0,0 @@
! Copyright (C) 2009 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: http.client images.loader images.loader.private kernel ;
IN: images.http
: load-http-image ( path -- image )
[ http-get nip ] [ image-class new ] bi load-image* ;

View File

@ -0,0 +1,11 @@
! Copyright (C) 2009 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: http.client images.loader images.loader.private kernel
images.viewer ;
IN: images.http
: load-http-image ( path -- image )
[ http-get nip ] [ image-class ] bi load-image* ;
: http-image. ( path -- )
load-http-image image. ;