nitrogen / simple_bridge

A simple, standardized interface library to Erlang HTTP Servers.
MIT License
112 stars 76 forks source link

Added DefaultValue for query_ and post_param functions inside request_wrapper #18

Closed ngaranko closed 11 years ago

ngaranko commented 11 years ago

Hi, I've added DefaultValue into query_param and post_param functions, so now we can use:

Req:query_param("price", 10.0).
Req:post_param("title", "test").

I've also added simple param function, to be used when developer doesn't cares where data is coming from (GET/POST).

ngaranko commented 11 years ago

Sorry, first pushed to https://github.com/choptastic/simple_bridge, now found out that it's not used by ChicagoBoss, please up this repo from you'r fork, or accept this pull req. Thanks.

choptastic commented 11 years ago

Indeed. I will be pushing it upstream. Thanks :) On Mar 1, 2013 6:23 AM, "Nick Garanko" notifications@github.com wrote:

Sorry, first pushed to https://github.com/choptastic/simple_bridge, now found out that it's not used by ChicagoBoss, please up this repo from you'r fork, or accept this pull req. Thanks.

— Reply to this email directly or view it on GitHubhttps://github.com/nitrogen/simple_bridge/pull/18#issuecomment-14286826 .