MHova
d28375e069
Use flusher for Apache outputFormat
2015-11-17 14:33:56 -08:00
MHova
5548e7fe8c
Honor autoFlush for Logger
2015-11-16 20:38:16 -08:00
MHova
3e73f94417
Restore auto-flushing for Handle
2015-11-16 20:36:32 -08:00
Greg Weber
c010a2826f
fix test now that the request logger logs the body
2015-10-16 13:13:37 -07:00
Greg Weber
8137be3121
version bump and ChangeLog for smarter gzip
2015-10-16 12:40:32 -07:00
Greg Weber
d012aec29c
only gzip responses < 860 bytes
2015-10-16 12:39:51 -07:00
Greg Weber
e2e135ff3e
add a contentLength helper
2015-10-16 12:38:23 -07:00
Greg Weber
1549898048
fix wai-extra version number
...
not sure what happend to wai-extra 3.0.11
I messed that up somehow
2015-10-09 15:53:10 -07:00
Greg Weber
7dbf0b7d90
wai-extra version bump for backwards compatibility
2015-10-09 12:48:51 -07:00
Greg Weber
33c96a1eca
use fromByteString to support older library versions
2015-10-09 11:54:28 -07:00
Michael Snoyman
b822a1fe71
Increase lower bound ( fixes #446 )
2015-10-08 14:49:54 +03:00
Eric Easley
b4d61b9743
Update changelog about JSON RequestLogger
2015-10-06 10:33:10 -07:00
Eric Easley
33a7ddffa5
Add detailed custom formatter and JSON formatter
2015-09-24 14:32:42 -07:00
Mikkel Christiansen
be9983eeb4
Change from deprecated breakByte
to break
.
2015-07-29 14:15:43 +02:00
Christopher Reichert
8285802eca
Merge pull request #409 from mschristiansen/warnings
...
Remove causes of compiler warnings. Use headers from http-types.
2015-07-28 10:43:03 -05:00
Mikkel Christiansen
06aa52b325
Remove causes of compiler warnings. Use headers from http-types.
2015-07-28 10:52:29 +02:00
Mikkel Christiansen
5a4e6e85c4
Add X-Forwarded-Proto to appearsSecure.
2015-07-28 08:16:43 +02:00
Michael Snoyman
f370437b58
Version bump
2015-07-24 20:09:51 +03:00
Nathan Smyth
4d73e50785
Using decodeUtf8' on Request Body
...
To prevent garbage data from polluting the logs, we check to see if the
data can be safely be turned into utf8. If not, we ignore the line.
2015-07-23 23:02:24 +08:00
Nathan Smyth
364c0cd74f
Detailed output in RequestLogger includes Req Body
...
While the body is correctly retrieved, at no point was it actually
included in the logs.
2015-07-23 18:36:48 +08:00
Michael Snoyman
019ab41ec7
wai-extra version bump
2015-07-21 02:10:29 +03:00
Greg Weber
698d4663bd
add routed middleware function
2015-07-20 00:03:20 -07:00
Michael Snoyman
4b37c94173
Version bump
2015-07-09 21:35:50 +03:00
Levi Notik
4708baa307
remove incorrect doc notes about log functions implemented on top of logCallback
2015-07-09 14:28:26 -04:00
Michael Snoyman
a7e7229c9a
fast-logger 2.4
2015-07-07 05:17:20 +03:00
Michael Snoyman
cf7e2921e7
Remove -Werror
2015-07-05 08:52:22 +03:00
Greg Weber
37a7f5030b
move helpers into wai
2015-07-04 19:00:31 -07:00
Greg Weber
68977f9e43
add ifRequest and modifyResponse helpers
2015-07-04 10:47:02 -07:00
Michael Snoyman
c668c1d708
Merge pull request #393 from erikd/master
...
wai-extra: Add stripHeader/s Middleware component
2015-07-03 04:21:47 -07:00
Erik de Castro Lopo
ea651898d2
wai-extra: Add NOINLINE pragmas as needed
...
The docs for `unsafePerformIO` say:
Use {-# NOINLINE foo #-} as a pragma on any function foo that
calls unsafePerformIO. If the call is inlined, the I/O may be
performed more than once.
2015-07-03 15:38:33 +10:00
Erik de Castro Lopo
a6e0c8f4c0
wai-extra: Add stripHeader/s Middleware component
...
This Middleware component allows specific HTTP response headers
(chosen by header name) to be dropped if the Wai Request matches
a predicate.
Tests included.
2015-07-03 14:37:35 +10:00
Michael Snoyman
c74d569a82
Version bump
2015-04-22 07:57:47 +03:00
Jonathan Daugherty
2da4b1417f
Network.Wai.Middleware.RequestLogger: clarify purpose/usage of exported record fields
2015-04-21 16:27:19 -07:00
Michael Snoyman
ff8e882b4e
Merge pull request #366 from DeathByTape/updateHaddock
...
Updated Haddock to be more descriptive about RequestLoggerSettings.
2015-04-12 22:11:55 +03:00
Dennis J. McWherter Jr
a23c3b74f3
Updated Haddock to be more descriptive about RequestLoggerSettings.
2015-04-12 13:43:16 -05:00
Michael Snoyman
731c328fae
Implemented feedback from @pbrisbin
2015-04-09 17:23:54 +03:00
Michael Snoyman
fb6823faec
Add approot middleware
2015-04-09 10:27:24 +03:00
Michael Snoyman
9a69864daf
ForceSSL cleanups
...
* Use Data.Word8 (more efficient than Data.ByteString.Char8)
* Use mempty (older blaze-builder does not have an IsString instance)
* Update ChangeLog
Pinging @pbrisbin
2015-04-09 09:24:28 +03:00
patrick brisbin
db086acf93
Avoid mempty
2015-04-08 13:45:59 -04:00
patrick brisbin
1aaa871318
Middleware.ForceSSL
...
Redirect any non-secure requests to https.
2015-04-08 13:27:24 -04:00
patrick brisbin
f139be72f1
Version bump
2015-04-08 11:15:53 -04:00
patrick brisbin
eabe0fdedd
Add Network.Wai.Request.appearsSecure to wai-extra
...
First checks isSecure, then checks various Headers that can indicate a
secure request even in the presence of a reverse proxy.
2015-04-08 10:50:32 -04:00
Michael Snoyman
59ad54645c
Fix test for previous commit
2015-04-02 16:31:10 +03:00
Michael Snoyman
a44478e65f
Only include cookie header if there are cookies
2015-04-02 16:28:53 +03:00
Michael Snoyman
4684a4ce18
Version bump
2015-04-02 13:19:37 +03:00
Matthias Hörmann
ee1a6a1157
Assertions on cookies and functions to modify and delete them
2015-04-02 11:48:16 +02:00
Matthias Hörmann
7802490942
tests for new cookie handling
2015-04-01 22:46:12 +02:00
Matthias Hörmann
240d28e536
cookie support in Network.Wai.Test
2015-04-01 22:46:02 +02:00
Michael Snoyman
f33eb3f4ad
Version bump
2015-03-26 14:50:15 +02:00
Aleksey Uimanov
fa36e4bac6
add functions to extract authentication data from Authorization header
2015-03-26 16:55:07 +05:00
Michael Snoyman
72244b5e97
Version bump
2015-03-18 18:58:51 +02:00
Ante Salinovic
0f651eaefc
Fix for logger Status field being out of place.
2015-03-04 14:44:51 +11:00
Michael Snoyman
a37f749b28
Allow fast-logger 2.3
2015-02-26 07:32:03 +02:00
Michael Snoyman
47a1c23c66
Version bump
2015-02-24 18:39:45 +02:00
Christopher Reichert
e17e6baf8c
Augment wai-extra package description.
...
Resolves #298 .
2015-02-24 09:12:54 -06:00
Michael Snoyman
f21a05dcc9
Version bump
2015-02-23 14:31:22 +02:00
Joel Taylor
80d3b1a660
Clean up imports
2015-02-22 16:58:15 -08:00
Michael Snoyman
583bd6a8bf
wai-extra: allow blaze-builder 0.4
2015-02-22 15:12:03 +02:00
Michael Snoyman
6506cf001a
Revert UrlMap changes from #325
2015-01-15 08:47:40 +02:00
Michael Snoyman
0b2aae6e13
Revert "Temporarily roll back rawPathInfo change in UrlMap"
...
This reverts commit 3d99b586a0
.
2015-01-15 08:45:25 +02:00
Michael Snoyman
3d99b586a0
Temporarily roll back rawPathInfo change in UrlMap
2015-01-14 21:51:43 +02:00
Michael Snoyman
000490af66
Trailing slashes for non-root apps #325
2015-01-14 21:41:54 +02:00
Michael Snoyman
e947f4c6b0
Fix compilation failure on Windows #321
2015-01-05 14:23:48 +02:00
Michael Snoyman
373114508e
Version bump
2015-01-05 10:56:59 +02:00
Michael Snoyman
aa0cba90dd
Merge pull request #317 from pparkkin/streamfile
...
WAI middleware that converts a ResponseFile into ResponseStream.
2015-01-05 10:55:44 +02:00
Michael Snoyman
163005a9c2
Version bump
2014-12-30 06:04:08 +02:00
Luite Stegeman
2a6906f0b6
fix ambiguous type due to OverloadedStrings and generalized elem
...
in GHC 7.10
2014-12-23 23:23:11 +01:00
Paavo
6cdbc1b5bd
Clean up imports.
2014-12-23 13:25:27 +09:00
Paavo
6f1be4f680
Add documentation for streamFile function.
2014-12-23 13:21:24 +09:00
Paavo
ccfdd18257
Add explicit module export list.
2014-12-23 13:10:04 +09:00
Paavo
418f0a3f23
Test for ResponseBuilder.
2014-12-22 22:49:27 +09:00
Paavo
d60b4cea7c
Also test body.
2014-12-22 22:41:41 +09:00
Paavo
db8f29ec5d
Add simple test case.
2014-12-22 22:31:25 +09:00
Paavo
bd03eddc93
Update cabal file.
2014-12-21 21:53:56 +09:00
Paavo
77ba8ee544
Middleware to convert a ResponseFile to a ResponseStream.
2014-12-21 21:51:22 +09:00
Michael Snoyman
50d7a20ca3
Doc link updates
2014-12-21 11:27:53 +02:00
Michael Snoyman
414ae5ebe4
Version bump
2014-12-13 19:29:49 +02:00
Marcin Tolysz
ba63b5041f
Add ability to prepend a list of headers without any checks
...
useful only at very specific times
2014-12-13 00:47:34 +00:00
Michael Snoyman
41839e865e
Version bumps
2014-12-02 07:31:51 +02:00
Michael Snoyman
edf5475366
cabal file fix
2014-12-01 23:17:38 +02:00
Simon Hengel
5728e63906
wai-extra: Remove specs for parseSimpleQuery
...
(parseSimpleQuery has been moved to http-types + we have QC properties
their)
2014-11-02 00:48:41 +08:00
Simon Hengel
79e2d58ab0
wai-extra: Split caseParseRequestBody into separate spec items
...
(one assertion per test)
2014-11-02 00:48:37 +08:00
Simon Hengel
4603f5d0b5
wai-extra: Move specs for Network.Wai.Parse to Network.Wai.ParseSpec
2014-11-02 00:48:27 +08:00
Simon Hengel
e048a5f669
wai-extra: Rely on OverloadedStrings instead of using pack explicitly
2014-11-02 00:48:24 +08:00
Simon Hengel
836c1181a9
wai-extra: Remove redundant liftIOs
2014-11-02 00:48:19 +08:00
Simon Hengel
dae03aabeb
wai-extra: Consolidate test suite
2014-11-01 22:21:40 +08:00
Greg Weber
4b13636e77
verion bump for new devel request logger
2014-08-22 13:29:50 -07:00
Ante Salinovic
88f91e1706
Removed older comments referring to log color cycling/grouping.
2014-08-22 10:54:18 +10:00
Ante Salinovic
086d48b1b5
Moved params above accept in logger output.
2014-08-22 10:20:58 +10:00
Ante Salinovic
2339e28005
Updated logger example.
2014-08-21 13:45:47 +10:00
Ante Salinovic
66da732184
Respecting useColor setting, corrected params output, tests fix.
2014-08-21 13:08:48 +10:00
Ante Salinovic
353e4c2499
Improved logging, color carries information.
...
Instead of request logs cycling through colours, bits of log
information are assigned appropriate colours for easier scanning.
ie. GET methods are all blue, 200 status codes are all green.
2014-08-19 17:20:54 +10:00
Michael Snoyman
5192dec05f
Version bump
2014-08-12 14:56:12 +03:00
Greg Weber
7ab66f9304
make output test looser for request time
2014-08-07 08:14:39 -07:00
Greg Weber
51adead0a3
log request time
2014-08-06 16:02:51 -07:00
Michael Snoyman
6bfecea8f4
wai-logger 2.2
2014-08-01 08:36:10 +03:00
Michael Snoyman
38f5f1507c
fast-logger bump
2014-07-29 05:54:03 +03:00
Michael Snoyman
5c98dbb3a2
Version bumps
2014-07-09 07:18:13 +03:00
Andy Gill
f6937dc84f
Adding a local-only middleware.
...
Taken from blank-canvas
2014-06-23 17:41:15 -05:00
Michael Snoyman
fcc2f4bd9b
Don't log raw responses #265
2014-06-19 11:02:15 +03:00
Michael Snoyman
5b1a7e384f
Don't GZIP raw responses #265
2014-06-18 11:55:10 +03:00
Michael Snoyman
efe040c916
Merge branch 'no-conduit'
...
Conflicts:
wai-extra/wai-extra.cabal
wai-handler-launch/wai-handler-launch.cabal
wai-test/wai-test.cabal
wai-websockets/wai-websockets.cabal
wai/wai.cabal
warp-tls/warp-tls.cabal
warp/Network/Wai/Handler/Warp/Response.hs
warp/warp.cabal
2014-06-09 10:24:51 +03:00
Michael Snoyman
41486135de
Simplified some deps
2014-05-29 07:25:32 +03:00
Michael Snoyman
46b5809b77
Version bumps
2014-05-23 07:37:27 +03:00
Greg Weber
f0b253eb83
errors should show up as red
...
fix >= 400, not > 400
don't use Red in the normal request colors
2014-05-22 15:28:28 -07:00
Michael Snoyman
e74d6949de
Fix eventsource
2014-05-22 20:39:38 +03:00
Michael Snoyman
52b2238dc7
Force some evaluation in wai-test
2014-05-22 20:24:20 +03:00
Michael Snoyman
b3cb523f78
All wai-extra tests pass
2014-05-22 17:03:23 +03:00
Michael Snoyman
02ae797b60
Most of wai-extra rewritten
2014-05-22 16:29:49 +03:00
Michael Snoyman
fdcc6aa86d
Fixed a bunch of middlewares
2014-05-22 15:36:43 +03:00
Michael Snoyman
1f7163b4c6
Beginning of wai-extra conversion
...
I quickly ran into problems with existentials. Going to try out an
alternate approach to simplify the types.
2014-05-22 14:56:19 +03:00
Michael Snoyman
f6107c166d
Remove all conduit deps in cabal files
2014-05-22 10:16:21 +03:00
Michael Snoyman
f88069c608
Deprecate wai-test and wai-eventsource
2014-05-22 10:12:42 +03:00
Michael Snoyman
c42f6f9954
cabal bumps to 3.0
2014-05-22 09:19:43 +03:00
Simon Hengel
3afe3bcdfd
Remove upper bound on transformers
2014-05-11 13:01:42 +08:00
Michael Snoyman
49d8f4b43e
conduit 1.1
2014-03-27 16:30:24 +02:00
Michael Snoyman
cbb8cf9fdd
Doc fix yesodweb/yesod#702
...
Pinging @meteficha @gregwebs
2014-03-27 07:04:40 +02:00
Michael Snoyman
1d8fc3e6c1
Move SCGI into wai-extra
2014-03-21 14:36:26 +02:00
Michael Snoyman
5640f65b8d
Version bump
2014-03-17 08:17:17 +02:00
Michael Snoyman
746c04c9e9
Use ByteString-based getEnvironment on *nix systems
2014-03-13 14:14:01 +02:00
Michael Snoyman
84dae37c2b
Drop fast-logger-2.0 support in wai-extra
2014-03-09 07:47:19 +02:00
Michael Snoyman
dc2fd07b4a
Fix some tests
2014-03-06 15:55:40 +02:00
Michael Snoyman
2d166e8bd6
Merge branch 'master' into raw-response
...
Conflicts:
warp/Network/Wai/Handler/Warp/Run.hs
2014-03-06 07:07:47 +02:00
Greg Weber
4e6188c44d
Use :: instead of | for accept-type
...
@maxcan's suggestion since this is Haskell
2014-03-05 15:31:49 -08:00
Michael Snoyman
c4ab46e429
responseRaw
2014-03-05 18:47:13 +02:00
Tavis Rudd
61957909d4
bump resourcet build-depend to >= 0.4.6
...
Network.Wai.Parse uses runInternalState which was introduced in resourcet-0.4.6.
2014-02-24 17:02:25 -08:00
Michael Snoyman
2c17ae8d02
Bump lifted-base dep ( fixes #224 )
2014-01-30 08:25:06 +02:00
paul-rouse
6807b859ad
Auto-flush in 'Detailed' log format
2014-01-26 11:42:10 +00:00
Michael Snoyman
acf311e418
Proper usage of clockDateCacher #221
2014-01-21 22:20:46 +02:00
Michael Snoyman
e88c696406
Version bump
2014-01-19 15:45:03 +02:00
Greg Weber
5f28ae648f
fix vhost export
2014-01-17 06:39:09 -08:00
Greg Weber
793c815904
Merge pull request #216 from yesodweb/redirect-helper
...
add redirection helper functions
2014-01-14 09:16:48 -08:00
Michael Snoyman
e373da27ec
Proper version bump
2014-01-14 08:18:40 +02:00
Greg Weber
d995cbce6f
add redirection helper functions
...
probably these belong somewhere else
2014-01-13 13:07:21 -08:00
Michael Snoyman
d4e843be5b
Force log flushing after each message yesodweb/yesod#647
2014-01-13 16:20:32 +02:00
Michael Snoyman
929264ea87
Merge pull request #215 from yesodweb/small-accept-log
...
devel logger: Accept doesn't need its own line
2014-01-06 21:52:12 -08:00
Greg Weber
58a36b6795
devel logger: Accept doesn't need its own line
...
GET /static/vendor/angularjs/angular-cookies.min.js
Accept: */*
will now be
GET /static/vendor/angularjs/angular-cookies.min.js | */*
2014-01-06 10:59:06 -08:00
Harry Garrood
4b348b659c
style: align arguments
2014-01-04 00:35:30 +00:00
Harry Garrood
58dcb6454b
UrlMap: Should 404 when no applications match
2014-01-04 00:32:26 +00:00
Harry Garrood
a99e8838f6
Improve UrlMap documentation
...
Add type signatures in code example
2014-01-04 00:24:45 +00:00
Harry Garrood
83138f0701
Add documentation for UrlMap
2014-01-04 00:22:54 +00:00
Harry Garrood
a7de40c590
Add UrlMap (with tests)
2014-01-04 00:11:15 +00:00
Michael Snoyman
19bd886dd4
fast-logger 2.1 support
2013-12-26 13:54:03 +02:00
Michael Snoyman
6e6e9184ad
Work around changes in fast-logger #209
2013-12-24 17:14:19 +02:00
Rudi Grinberg
1b853e6f24
typos
2013-12-21 13:55:55 -08:00
Michael Snoyman
bea0431dba
Don't prematurely delete temp files yesodweb/yesod#630
2013-12-13 06:34:28 +02:00
Michael Snoyman
d1dae07fd8
Remove text upper bounds
2013-12-04 14:56:08 +02:00
Michael Snoyman
e61483c708
Fix some warnings
2013-12-04 05:41:00 +02:00
Michael Snoyman
441a1d776c
fast-logger/wai-logger 2.0
2013-12-02 09:09:01 +02:00
Michael Snoyman
c4b2097eef
Fix .CGI
2013-12-02 09:04:02 +02:00