Fumiaki Kinoshita
Fumiaki Kinoshita
I've just stumbled upon this issue. I think one way to move this forward is to add a field like `allowAbsoluteRoot: true` to `ServeStaticOptions`, so that existing users of `serveStatic`...
@j6carey @ixmatus @riz0id Does anyone have a chance to take a look at this?
FYI barbies-th provides an equivalent `AccessorsB` class: https://hackage.haskell.org/package/barbies-th-0.1.9/docs/Barbies-TH.html#t:AccessorsB It would be great to have this in barbies so that barbies-th focus on the Template Haskell part
Instead of my original suggestion, we could also implement the whole validation logic as a WAI middleware
@pbrinkmeier I believe the middleware approach makes implementation much easier. I don't have a strong opinion about the user-facing API, but how about adding `validateHeaders :: Bool` field to `Options`,...
@ocramz I'd personally prefer letting users insert the middleware, but I thought it might be an option if we care about ease of use.
+1 to exporting the middleware from Web.Scotty (IMO the right place for this middleware is https://hackage.haskell.org/package/wai-extra, but it shouldn't stop going forward in scotty)
There are two problems: * ScottyT is not a monad transformer * Some code already relies on ScottyT being an IO-based monad To make it a real transformer, a new...
FWIW I haven't felt a desperate need because it's just a matter of calling `warp-tls` on top of `scottyApp`, and in most cases handling TLS is a reverse proxy's responsibility....
Indeed, given that scotty supports WAI middlewares via the `middleware` function, perhaps there should be a function to enable TLS in the same vein