diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 09:21:34 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-11-06 09:21:34 -0500 |
commit | 1841f3b75ec441d16d289cb768526c374f16960a (patch) | |
tree | ba523b94cf3cd06fdc212a16b0ae735ad2d11aa9 /tests/reqheader.ur | |
parent | 627c93b9779f632bd8d90e7e2de26a5a9c197f08 (diff) |
Monoizing FFI transactions correctly
Diffstat (limited to 'tests/reqheader.ur')
-rw-r--r-- | tests/reqheader.ur | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/reqheader.ur b/tests/reqheader.ur new file mode 100644 index 00000000..8b69cc3a --- /dev/null +++ b/tests/reqheader.ur @@ -0,0 +1,5 @@ +fun main () : transaction page = + ua <- requestHeader "UserAgent"; + case ua of + None => return <xml>Not found</xml> + | Some s => return <xml>UserAgent: {[s]}</xml> |