Commit Graph

24 Commits

Author SHA1 Message Date
Felipe Lessa
5c434b089a Rewrite handlerToIO so that it works with Yesod 1.2.
Since the new YesodRequest has strict fields, handlerToIO didn't
work at all.  Even if it did, it had a reference to its parent's
ResourceT's internal state, so its chances of blowing up were
quite high.

The new implementation takes a whitelist approach of taking what
we want instead of clearing what we do not want.  Also, it takes
care of using a new runResourceT.
2013-05-03 21:20:31 -03:00
Michael Snoyman
307540fc04 GHC 7.6.2 2013-04-09 06:43:30 +03:00
Greg Weber
8429a66ad8 not authenticated returns 401, not 403 2013-04-03 07:47:32 -07:00
Michael Snoyman
e663e84caf Deprecate setHeader, provide addHeader #524 2013-04-03 17:28:44 +03:00
Greg Weber
18be9bc206 accept header content negotiation
* look at wildcards */* and main/*
* return a 406 when nothing matches the accept header
2013-04-02 08:39:56 -07:00
Michael Snoyman
6d98103115 Generalized sendChunk* functions 2013-03-27 09:46:10 +02:00
Michael Snoyman
ae65603c4b Generalize streaming functions 2013-03-24 22:11:59 +02:00
Michael Snoyman
f3b459e9ce respond 2013-03-22 10:33:33 +02:00
Michael Snoyman
c16184eb40 Type-specialized versions of sendChunk 2013-03-21 11:42:20 +02:00
Michael Snoyman
968b96e0b1 sendChunk/sendFlush 2013-03-21 08:42:10 +02:00
Michael Snoyman
ff3eb746f1 Added some docs 2013-03-21 08:30:09 +02:00
Michael Snoyman
8c45b2709f respondSource 2013-03-20 13:49:43 +02:00
Michael Snoyman
a2c4f1f3b7 MonadHandler/MonadWidget 2013-03-17 10:10:39 +02:00
Michael Snoyman
44a01d7107 Better fileSource 2013-03-14 19:02:20 +02:00
Michael Snoyman
15bbd54e12 Some cleanup 2013-03-14 10:23:57 +02:00
Michael Snoyman
9c4cd573b4 Everything compiles 2013-03-14 09:28:51 +02:00
Michael Snoyman
0f1637a1aa Implemented rawRequestBody 2013-03-14 07:35:09 +02:00
Michael Snoyman
8e793c70cc Compiles again, tests fails 2013-03-14 07:32:40 +02:00
Michael Snoyman
c466845095 More incomplete changes 2013-03-14 05:58:37 +02:00
Michael Snoyman
553dff7bd2 Incomplete change: GWidget/GHandler->WidgetT/HandlerT 2013-03-14 05:00:16 +02:00
Michael Snoyman
099b96f178 Everything compiles 2013-03-13 13:35:11 +02:00
Michael Snoyman
4bdd01ef58 Simplified GHandler/GWidget 2013-03-13 10:59:10 +02:00
Michael Snoyman
0633d0b259 Beginning of subsite TH overhaul 2013-03-13 09:14:24 +02:00
Michael Snoyman
9873b4d8f3 Moved code around some more 2013-03-12 05:49:24 +02:00