summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2019-01-21 18:09:59 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2019-01-21 18:09:59 -0500
commit87d2eab53f8e9f81cc459429675123c9ff36f41e (patch)
tree81b658d13942148ed6ab7f745b0514ab6ffcc232 /lib
parent38a20fdb9619e33ea989e171d98777cb3d7c6bc5 (diff)
Basis.textOfBlob; try creating filecache directory if it doesn't exist
Diffstat (limited to 'lib')
-rw-r--r--lib/ur/basis.urs2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ur/basis.urs b/lib/ur/basis.urs
index c893e65d..be13c684 100644
--- a/lib/ur/basis.urs
+++ b/lib/ur/basis.urs
@@ -1019,6 +1019,8 @@ val checkMime : string -> option mimeType
val returnBlob : t ::: Type -> blob -> mimeType -> transaction t
val blobSize : blob -> int
val textBlob : string -> blob
+val textOfBlob : blob -> option string
+(* Returns [Some] exactly when the blob contains no zero bytes. *)
type postBody
val postType : postBody -> string