Helper function to get the first 1024 characters of the body, assuming it is UTF-8. This function is used to preview the body in case of an assertion failure.
Moduleyesod-test-1.6.19Haskell2010
Yesod.Test.Internal
This module exposes functions that are used internally by yesod-test. The functions exposed here are _not_ a stable API—they may be changed or removed without any major version bump.
That said, you may find them useful if your application can accept API breakage.
- 3 values
- Packageyesod-test-1.6.19
- Exports3
- LanguageHaskell2010
- LicenceMIT
- SourceInternal.hs
Helper function to determine if we can print a body as plain text, for debugging purposes.
List of Content-Types that are assumed to be UTF-8 (e.g. JSON).