开发者

Receiving HTTP request params in Lift

开发者 https://www.devze.com 2023-01-14 04:14 出处:网络
I\'m a Lift newbie and I can\'t digest it\'s HTTP request/response cycle yet. Handling REST is thoroughly explained in Lift docs but what I\'m looking for is much simpler: how do I access HTTP request

I'm a Lift newbie and I can't digest it's HTTP request/response cycle yet. Handling REST is thoroughly explained in Lift docs but what I'm looking for is much simpler: how do I access HTTP request body/params in my 开发者_开发技巧web service (in Scala code of course) ?


If you are using Lift 2.0, then you can use S.getRequestHeader().


To get HTTP param with given name, you can use method S.param(parameter_name).

0

精彩评论

暂无评论...
验证码 换一张
取 消