whalesong/resource/racket-impl.rkt
2011-08-12 17:22:33 -04:00

11 lines
196 B
Racket

#lang racket/base
(provide resource->url)
(require "structs.rkt"
net/url)
;; resource->url: resource -> string
(define (resource->url r)
(url->string (path->url (resource-path r))))