Commit graph

26 commits

Author SHA1 Message Date
Serdar Dogruyol
d2ef57a128 Improve param parsing and remove url_params from HTTP::Request 2018-07-03 20:29:06 +03:00
Serdar Dogruyol
a5870e7d24
Crystal 0.25.0 (#452) 2018-06-16 18:03:00 +03:00
V. Elenhaupt
c2236acf3a Code fixes reported by static code analysis (#450) 2018-05-17 11:07:40 +03:00
Serdar Dogruyol
11295f0584 Revert "Don't use JSON::Type, use JSON::Any instead"
This reverts commit 34475b986a.
2018-03-10 11:11:42 +03:00
Serdar Dogruyol
db00ecba1d
Don't use JSON::Type, use JSON::Any instead (#435) 2018-03-10 11:05:34 +03:00
Serdar Dogruyol
61caa077b7 Improve namings 2017-10-02 23:56:02 +03:00
Sdogruyol
2b604dfb30 Add context to WebSocket. This allows one to use context.params like url,query, body e.g 2017-08-20 20:01:49 +03:00
sdogruyol
e695a491b7 Revert "Modiy HTTP::Params.[] to fetch all params"
This reverts commit c0745cc9e2.
2017-05-08 17:28:21 +03:00
Serdar Dogruyol
1177619da9 Modiy HTTP::Params.[] to fetch all params (#328) 2017-03-13 16:52:42 +02:00
sdogruyol
8ec9ed8331 Improve docs 2016-11-10 16:38:29 +03:00
Sam Eaton
e43b2a3a01 Decodes url parameters (#229)
Decode url parameters
2016-10-18 16:28:42 +03:00
Sijawusz Pur Rahnama
28859fbdb8 Fix parsing JSON params when "charset" is present in "Content-Type" header (#193)
Resolves case when `Content-Type` headers is passed in form of `application/json; charset=utf-8`
2016-08-11 22:29:29 +03:00
Omar Roth
ac4a5afc05 Fix ssl and specs for 0.18 2016-06-14 16:18:00 -05:00
Matthew Gerrior
d1f9c4394b Opt for built-in HTTP::Params class instead. 2016-06-14 07:32:13 -04:00
Matthew Gerrior
a5e4bc21f3 Allow multiple values for a single parameter key. 2016-06-11 16:52:07 -04:00
Fatih Kadir Akın
53d12534b7 Remove ParamContainer abstraction to make it faster. 2016-03-06 21:43:13 +02:00
Fatih Kadir Akın
8267ffe2c5 Upgrade ParamParser to make it more convinient.
It now decouples `env.params` to `env.params.query`, `env.params.body`,
`env.params.json` and `env.params.url` and you still can access merged
values using `env.params.all`
2016-03-06 13:22:24 +02:00
Joris Moriau
c5201f01ad added verb for filters and minor improvements 2016-02-17 10:34:01 +01:00
Aşkın Gedik
51708ce8e7 parse request body for array 2015-11-10 13:30:16 +02:00
Micah Geisel
dea9b2f663 application/json GETs can have no request body. 2015-11-09 16:35:28 -08:00
Sdogruyol
3687897005 Added JSON body parsing 2015-11-06 20:24:38 +02:00
Oleksii Fedorov
f658fbe8af Parse request body params only if content type is application/x-www-form-urlencoded 2015-11-05 11:38:06 +01:00
Sdogruyol
da23d397c6 Formatted 2015-10-31 08:53:49 +02:00
Sdogruyol
5376eb8bb2 Added context specs 2015-10-28 20:52:34 +02:00
Sdogruyol
ad6baba12b Added param_parser specs 2015-10-28 20:38:24 +02:00
Sdogruyol
3cc50e0a7e Added param parser 2015-10-28 20:30:27 +02:00