8 lines
267 B
Factor
8 lines
267 B
Factor
|
! 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* ;
|