These are chat archives for rpscala/rpscala

1st
Feb 2017
harry
@harry0000
Feb 01 00:23

https://www.playframework.com/documentation/2.5.x/ScalaHttpFilters

Filters wrap the action after the action has been looked up by the router. This means you cannot use a filter to transform a path, method or query parameter to impact the router.

If you do need to modify the request before the router is invoked, a better way to do this would be to place your logic in HttpRequestHandler instead.

RoRのようにbody(Form Data)の _method に応じて独自のルーティングをする場合、 HttpRequestHandler を変更する必要がありそうな気がします。
https://www.playframework.com/documentation/2.5.x/ScalaHttpRequestHandlers

荒木敦
@applideveloper_twitter
Feb 01 02:08
playframework/playframework#2063
aspnet/BasicMiddleware#23