parsa
parsa

Reputation: 2668

Receiving HTTP request params in Lift

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) ?

Upvotes: 4

Views: 553

Answers (2)

uhbif19
uhbif19

Reputation: 3245

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

Upvotes: 0

notnoop
notnoop

Reputation: 59299

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

Upvotes: 3

Related Questions