Anupam Jain
38680c6568
Add test for hierarchical subsite with arguments
...
Note: Needed to enable ViewPatterns for this
2016-01-19 17:06:40 +05:30
Anupam Jain
0d99f94e5a
Add a testcase for nested subsites
2016-01-14 11:30:06 +05:30
Daniel Díaz
5375bacf81
Placed App after mkYesod in the RawResponse test.
2015-08-23 22:53:13 +02:00
Maximilian Tagher
33982b2112
Add CSRF protection functions/middleware that support AJAX requests
2015-08-17 16:52:39 -07:00
Patrick Boe
8b7c58f381
added functions to simplify application of an ssl-only policy to a site
2014-12-20 10:26:32 -05:00
Michael Snoyman
9a4348a0e3
Improve etag supported fpco/stackage-server#29 #868 #869
2014-11-19 11:03:55 +02:00
Greg Weber
898c0a1e18
test case for toWidget* functions
2014-10-27 21:16:03 -07:00
Michael Snoyman
972e117005
More efficient token generation
...
Old code would create a new System.Random generator each time, which
requires going to the system entropy store. New code caches an
mwc-random gen at startup.
2014-10-20 10:34:38 +03:00
Greg Weber
00b5781ec5
add cachedBy, like cached but adds a key
...
re-factored to a base implementation with
no Yesod dependencies in TypeCache.hs
2014-09-20 14:34:10 -07:00
Michael Snoyman
ccab062f2d
Remove all conditional compilation for Yesod 1.4 release
...
Left in for GHC-bundled libraries (ghc, base, bytestring, binary)
2014-09-07 18:17:45 +03:00
Michael Snoyman
f779004d19
Merge yesod-routes into yesod-core entirely
2014-09-07 17:34:37 +03:00
Michael Snoyman
6eb1447dd9
Add missing LANGUAGE pragma
2014-08-27 08:15:47 +03:00
Michael Snoyman
c66ef04f17
Merge branch 'master' into yesod-1.4
...
Conflicts:
yesod-form/Yesod/Form/Functions.hs
2014-08-25 20:20:16 +03:00
Michael Snoyman
a3ec07c359
Disable broken test
2014-08-23 21:50:38 +03:00
Michael Snoyman
21d1965774
Merge remote-tracking branch 'origin/master' into yesod-1.4
2014-06-15 15:49:51 +03:00
Michael Snoyman
f92cdd5c41
sendWaiApplication
2014-06-15 15:48:57 +03:00
Michael Snoyman
b93a5d1993
Merge branch 'master' into yesod-1.4
...
Conflicts:
yesod-core/test/YesodCoreTest/CleanPath.hs
yesod-persistent/yesod-persistent.cabal
2014-06-09 11:22:30 +03:00
Michael Snoyman
71263ae047
Initial WAI 3.0 support, one test still failing
2014-05-22 20:17:29 +03:00
Michael Snoyman
fe622d5345
Merge remote-tracking branch 'origin/master' into yesod-1.4
...
Conflicts:
yesod-auth/yesod-auth.cabal
yesod-form/Yesod/Form/Fields.hs
yesod-form/yesod-form.cabal
yesod-persistent/Yesod/Persist/Core.hs
2014-04-18 14:33:54 +03:00
Michael Snoyman
c44a48c8ae
Test cases for #712
2014-04-10 19:59:54 +03:00
Michael Snoyman
d764464152
conduit 1.1
2014-03-27 16:38:52 +02:00
Michael Snoyman
24e8e53f64
Merge remote-tracking branch 'origin/master' into persistent2-simpler-dispatch
...
Conflicts:
.gitignore
yesod-core/yesod-core.cabal
2014-03-20 04:14:09 +02:00
Greg Weber
5c3078b51e
parseJsonBody_ deprecated for requireJsonBody
2014-03-11 18:07:46 -07:00
Michael Snoyman
56e42936b0
sendRawResponse
2014-03-06 16:34:27 +02:00
Michael Snoyman
c19088d569
Switch yesod-core to use simpler dispatch
2014-03-04 13:46:03 +02:00
Michael Snoyman
f4bbe1cc52
Set content-length whenever evaluating a response body
2014-03-02 14:30:46 +02:00
Michael Snoyman
5ee5301ce8
Added test cases for #658 notCaught 4 and 5
2014-01-27 17:24:50 +02:00
Michael Snoyman
86b7f5ea43
Test case and fix for notCaught3 in #658
2014-01-27 17:20:02 +02:00
Greg Weber
20efbebe4e
test cases for multiple method routes
2013-12-22 17:10:17 -08:00
Michael Snoyman
f85b38e817
Fix tests: force HTTP/1.1 in a few places
2013-12-03 11:57:56 +02:00
Michael Snoyman
d5b66d35d5
Allow overriding status code in error handlers
2013-08-04 08:55:42 +03:00
Michael Snoyman
743966898d
Move away from RepHtml some more
2013-05-20 09:16:53 +03:00
Michael Snoyman
42943deab9
Better route type parsing ( fixes #471 )
2013-04-22 15:01:52 +03:00
Michael Snoyman
16260f3e37
RouteAttrs ( fixes #531 )
2013-04-21 17:14:40 +03:00
Michael Snoyman
a013eb2295
maximumContentLength is a Maybe
2013-04-18 10:19:50 +03:00
Michael Snoyman
64ef26104d
Route attributes/appcache example #518
2013-04-11 17:07:22 +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
Greg Weber
be04f4888b
fix yesod-core auth response type for json
2013-04-02 08:27:30 -07:00
Michael Snoyman
d4422b656b
LiteApp uses a Writer monad
2013-03-27 08:51:03 +02:00
Michael Snoyman
8ab09931c4
Code cleanup and transformer instances
2013-03-22 09:17:14 +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
8c45b2709f
respondSource
2013-03-20 13:49:43 +02:00
Michael Snoyman
cf77d86a6a
Use new mkParseRouteInstance in yesod-core
2013-03-19 15:17:28 +02:00
Michael Snoyman
564fdab66b
SimpleApp to LiteApp
2013-03-18 12:18:49 +02:00
Michael Snoyman
0fc1c6cfef
SimpleApp
2013-03-18 12:13:26 +02:00
Michael Snoyman
da24596b77
Incomplete SimpleApp
2013-03-18 05:12:04 +02:00
Michael Snoyman
bca0d24533
Route parsing
2013-03-17 13:28:17 +02:00
Michael Snoyman
4295346171
Split files up a bit more
2013-03-17 11:38:33 +02:00
Michael Snoyman
15bbd54e12
Some cleanup
2013-03-14 10:23:57 +02:00
Michael Snoyman
3df45ac1c7
Another whitespace fix for tests
2013-03-14 07:38:24 +02:00
Michael Snoyman
8e793c70cc
Compiles again, tests fails
2013-03-14 07:32:40 +02:00
Michael Snoyman
4bdd01ef58
Simplified GHandler/GWidget
2013-03-13 10:59:10 +02:00
Michael Snoyman
fc6551c650
defaultLayoutT
2013-03-13 10:15:47 +02:00
Michael Snoyman
5de675b45c
Added missing test file
2013-03-13 09:17:40 +02:00
Michael Snoyman
0633d0b259
Beginning of subsite TH overhaul
2013-03-13 09:14:24 +02:00
Michael Snoyman
2aefef4414
YesodSubDispatch
2013-03-13 08:48:28 +02:00
Michael Snoyman
e928991410
Include a proper subsite test
2013-03-13 08:14:01 +02:00
Michael Snoyman
815e185a4b
Slight simplification to YesodDispatch typeclass
2013-03-13 07:12:19 +02:00
Michael Snoyman
04a034770b
Beginning of a dispatch overhaul
2013-03-12 10:21:26 +02:00
Michael Snoyman
9873b4d8f3
Moved code around some more
2013-03-12 05:49:24 +02:00
Michael Snoyman
1d0cac6e03
TypedContent
2013-03-11 10:45:01 +02:00
Michael Snoyman
d2f5ca449d
selectRep/provideRep API
2013-03-11 09:08:34 +02:00
Michael Snoyman
e673c1f35e
Removed some subsite stuff
2013-03-11 07:23:30 +02:00
Michael Snoyman
8d5f207c8d
Removed Yesod.Internal.TestApi
2013-03-10 15:21:54 +02:00
Michael Snoyman
9559c2a345
Typeable-based cache implementation ( #268 )
2013-03-10 15:05:40 +02:00
Michael Snoyman
1a5793e2b9
Removed Yesod.Request
2013-03-10 14:38:52 +02:00
Michael Snoyman
070e0aa8b3
Make RandomGen parameter optional
2013-03-10 14:34:00 +02:00
Michael Snoyman
5b5203a275
Removed yepnope
2013-03-10 14:20:39 +02:00
Michael Snoyman
ee01aaf268
Better error handling and auth checking
2013-03-10 14:03:10 +02:00
Michael Snoyman
dc79ddecd9
Auth tests
2013-03-10 13:48:26 +02:00
Michael Snoyman
4ece5fafd9
Removed handlerToYAR
2013-03-10 13:24:23 +02:00
Michael Snoyman
1bd193f642
Initial YesodRequest/YesodRespnse change
2013-03-10 11:58:29 +02:00
Michael Snoyman
4f1a6b461e
BackendSession => SessionMap
2013-03-10 11:13:19 +02:00
Michael Snoyman
2377d70ec8
Merge branch 'master' into yesod1.2
...
Conflicts:
yesod-json/yesod-json.cabal
2013-03-10 09:49:28 +02:00
Michael Snoyman
afd700753c
Use RequestBodyLength
2013-03-10 05:26:34 +02:00
Michael Snoyman
f78559d7ed
Remove deprecated Yesod.Widget functions ( fixes #469 )
2013-01-15 11:23:21 +02:00
Michael Snoyman
bd05541df4
Limit request body sizes for chunked bodies
2013-01-01 11:18:07 +02:00
Michael Snoyman
d37b0634a5
Added yesodMiddleware method
2012-11-21 10:58:45 +02:00
Simon Hengel
dfae661878
Adept Hspec tests for forward compatibility
...
* Don't use hspecX, it's deprecated.
* Do not import Test.Hspec.HUnit. It's no longer necessary and may be
removed in the future.
2012-10-16 14:44:58 +02:00
Michael Snoyman
cf4fed8cb9
Precede null path segments with dashes ( #421 )
2012-09-21 14:23:38 +03:00
Michael Snoyman
df5018a94c
hspec 1.3
2012-08-03 15:40:36 +03:00
Michael Snoyman
c009067b11
DontFullyEvaluate (Felipe's code)
2012-07-25 08:54:43 +03:00
Michael Snoyman
f91ff4fde2
fullyEvaluateBody
2012-07-24 17:49:17 +03:00
Michael Snoyman
ddd1059983
Updated fast-logger/wai-logger
2012-07-05 11:04:04 +03:00
Michael Snoyman
7c4d6b5e47
Javascript in Head ( #380 )
2012-07-04 17:53:24 +03:00
Michael Snoyman
8fac4917b5
FileUpload ( #358 )
2012-07-02 11:15:02 +03:00
Michael Snoyman
3ecbf43f5d
$newline
2012-07-01 20:59:37 +03:00
Simon Hengel
653ffd02fb
yesod-core: Adapt tests for hspec-1.1
...
This is not strictly necessary, the `UnevaluatedSpec` is merely
deprecated. But it is a good idea anyway.
2012-05-07 07:43:28 +02:00
Mark Wright
9f4c92f181
yesod-core changes for hspec 1.0
2012-05-06 12:18:49 +10:00
Michael Snoyman
742ffa4d14
Automatically apply toWidget to ^{} interpolations
2012-04-03 08:07:57 +03:00
gregwebs
3f0848121c
Session -> BackendSession
2012-03-25 13:31:02 -07:00
gregwebs
47b89724e8
Revert "fix tests: import Yesod.Core hiding (Session)"
...
This reverts commit f548a4c566 .
2012-03-25 13:31:02 -07:00
gregwebs
469d58cf6d
Revert "another Session hide"
...
This reverts commit 589ab4a547 .
2012-03-25 13:31:02 -07:00
gregwebs
2baeddd698
fix doctype 5
2012-03-25 08:21:21 -07:00
gregwebs
589ab4a547
another Session hide
2012-03-25 08:13:03 -07:00
gregwebs
f548a4c566
fix tests: import Yesod.Core hiding (Session)
2012-03-25 08:08:19 -07:00
gregwebs
b1bc42a8bd
use doctype 5 instead of !!!
2012-03-25 07:49:35 -07:00