From bc7a09d702e53faaa882bb7b2591abe68ff5648e Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 26 Apr 2009 09:02:17 -0400 Subject: Returning a blob as page result --- tests/echoBlob.ur | 8 ++++++++ tests/echoBlob.urp | 3 +++ tests/echoBlob.urs | 1 + 3 files changed, 12 insertions(+) create mode 100644 tests/echoBlob.ur create mode 100644 tests/echoBlob.urp create mode 100644 tests/echoBlob.urs (limited to 'tests') diff --git a/tests/echoBlob.ur b/tests/echoBlob.ur new file mode 100644 index 00000000..fc8f8603 --- /dev/null +++ b/tests/echoBlob.ur @@ -0,0 +1,8 @@ +fun echo r = returnBlob (fileData r.Data) (blessMime (fileMimeType r.Data)) + +fun main () = return +
+ + + +
diff --git a/tests/echoBlob.urp b/tests/echoBlob.urp new file mode 100644 index 00000000..4b94b59c --- /dev/null +++ b/tests/echoBlob.urp @@ -0,0 +1,3 @@ +debug + +echoBlob diff --git a/tests/echoBlob.urs b/tests/echoBlob.urs new file mode 100644 index 00000000..6ac44e0b --- /dev/null +++ b/tests/echoBlob.urs @@ -0,0 +1 @@ +val main : unit -> transaction page -- cgit v1.2.3