From 2d37bf0ef2c634819293a191eff9799934b08346 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 2 May 2009 18:20:15 -0400 Subject: Runtime URL and MIME type filtering --- lib/ur/basis.urs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ur/basis.urs') diff --git a/lib/ur/basis.urs b/lib/ur/basis.urs index e5175a08..25ad2786 100644 --- a/lib/ur/basis.urs +++ b/lib/ur/basis.urs @@ -514,6 +514,7 @@ con tr = [Body, Tr] type url val bless : string -> url +val checkUrl : string -> option url val dyn : use ::: {Type} -> bind ::: {Type} -> unit -> tag [Signal = signal (xml body use bind)] body [] use bind @@ -600,6 +601,7 @@ val upload : formTag file [] [Value = string, Size = int] type mimeType val blessMime : string -> mimeType +val checkMime : string -> option mimeType val returnBlob : t ::: Type -> blob -> mimeType -> transaction t val blobSize : blob -> int -- cgit v1.2.3