diff options
author | Adam Chlipala <adam@chlipala.net> | 2019-01-21 18:09:59 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2019-01-21 18:09:59 -0500 |
commit | 87d2eab53f8e9f81cc459429675123c9ff36f41e (patch) | |
tree | 81b658d13942148ed6ab7f745b0514ab6ffcc232 /lib/ur | |
parent | 38a20fdb9619e33ea989e171d98777cb3d7c6bc5 (diff) |
Basis.textOfBlob; try creating filecache directory if it doesn't exist
Diffstat (limited to 'lib/ur')
-rw-r--r-- | lib/ur/basis.urs | 2 |
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 |