Guest User

Untitled

a guest
Apr 25th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #light
  2.  
  3. namespace Comet.Chating
  4.  
  5. open Comet
  6. open System
  7. open System.Web
  8.  
  9. type SendHandler() =
  10.  
  11. interface IHttpHandler with
  12. member h.IsReusable = false
  13. member h.ProcessRequest(context) =
  14. let fromName = context.Request.Form.Item("from");
  15. let toName = context.Request.Form.Item("to")
  16. let msg = context.Request.Form.Item("msg")
  17. Chat.send fromName toName msg
  18. context.Response.Write "sent"
Add Comment
Please, Sign In to add comment