Anton Maminov
6de5e7b929
Fix ParamParser files memoization ( #503 )
2018-11-05 22:51:22 +03:00
Serdar Dogruyol
7358994e91
Fix multipart upload and back params.files ( #499 )
2018-11-05 02:20:21 +03:00
Julien Reichardt
21ab64511a
Add allocation optimizations ( #487 )
2018-11-01 14:29:05 +03:00
Serdar Dogruyol
4a58bc9690
Remove env.params.files and FileUpload
2018-07-04 21:42:58 +03:00
Serdar Dogruyol
d2ef57a128
Improve param parsing and remove url_params from HTTP::Request
2018-07-03 20:29:06 +03:00
Serdar Dogruyol
eed97877a7
Simplify file upload parsing and support multiple uploads with same name ( #458 )
2018-06-27 23:33:28 +03:00
Serdar Dogruyol
a5870e7d24
Crystal 0.25.0 ( #452 )
2018-06-16 18:03:00 +03:00
Serdar Dogruyol
11295f0584
Revert "Don't use JSON::Type, use JSON::Any instead"
...
This reverts commit 34475b986a486730d696ddf52250c38d7e0cfe4a.
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
159e963404
Format with 0.24.1 formatter
2018-01-26 18:32:24 +03:00
Serdar Dogruyol
56d34deef9
Minor refactors
2017-12-08 21:35:02 +03:00
Serdar Dogruyol
8cb9770ec3
Use HTTP::Params.add instead of HTTP::Params.[]=
2017-11-20 17:23:11 +03:00
Serdar Dogruyol
a3a0f40468
Revert "Parse body in multipart forms"
...
This reverts commit ca7c4dc0e8
.
2017-11-20 15:01:16 +03:00
Serdar Dogruyol
ca7c4dc0e8
Parse body in multipart forms
2017-11-19 18:14:06 +03:00
Sijawusz Pur Rahnama
1d8908e673
Fixed macros indentation ( #409 )
2017-10-06 14:55:37 +03:00
Sijawusz Pur Rahnama
210e2c0801
Prettify docs ( #410 )
2017-10-06 14:53:53 +03:00
Serdar Dogruyol
8fb5be2a42
Remove redundant casts
2017-09-05 12:03:37 +03:00
Serdar Dogruyol
b8e3298925
Use request.content_type
2017-09-04 18:54:06 +03:00
Sdogruyol
f4de825ab8
Revert "Skip files with empty #size in ParamParser, fixes #309 ( #333 )"
...
This reverts commit d0c034b911
.
2017-03-18 00:47:04 +03:00
Sijawusz Pur Rahnama
d0c034b911
Skip files with empty #size in ParamParser, fixes #309 ( #333 )
2017-03-12 19:30:30 +02:00
Sdogruyol
596452f838
More docs
2017-03-03 23:56:29 +03:00
Serdar Dogruyol
b7ce53e5ab
Crystal 0.21.0 support ( #304 )
...
Crystal 0.21.0 support
2017-02-21 21:24:11 +02:00
Sdogruyol
9607083e59
Mark inner methods as private
2017-02-13 23:39:40 +03:00
Serdar Dogruyol
6fe57d5e78
Better file upload
2017-02-11 15:33:42 +02:00
sdogruyol
1826789e84
Use body.gets_to_end for parse_json. Fixes #260
2016-11-25 10:45:25 +03:00
sdogruyol
3b9a3f84ab
Treat HTTP::Request body as IO. Fixes #257
2016-11-24 12:07:39 +03:00
Serdar Dogruyol
bc764b7af7
Treat body as IO in param_parser ( #252 )
2016-11-16 22:09:50 +04:00
sdogruyol
8ec9ed8331
Improve docs
2016-11-10 16:38:29 +03:00
Sam Eaton
375259f34c
Replace implementation with more appropriate URI.unescape ( #231 )
2016-10-19 11:30:58 +03:00
Sam Eaton
e43b2a3a01
Decodes url parameters ( #229 )
...
Decode url parameters
2016-10-18 16:28:42 +03:00
Sijawusz Pur Rahnama
a6678f6622
Use String#starts_with? instead of String#[]? ( #194 )
...
It shows real intention and covers cases when `application/json` is passed in the middle of the string, like `some_garbage_string; application/json`
2016-08-12 22:17:57 +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
Sdogruyol
f7484d14d3
Use nested module declaration
2016-07-17 14:43:13 +03:00
sdogruyol
f92d812c32
Format
2016-06-15 08:58:14 +03: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
sdogruyol
2b9152ff79
Update instance types
2016-04-13 11:00:02 +03:00
sdogruyol
05e44e68c6
Updating to instance types
2016-04-12 14:41:09 +03:00
Fatih Kadir Akın
043d1c8aa2
Add memoization to lazy param parsing
2016-03-07 11:21:37 +02:00
Fatih Kadir Akın
4ee4b66135
Make the param getters lazy to improve performance
2016-03-06 22:29:23 +02:00
Fatih Kadir Akın
42deb95688
Remove merged params to improve performance
2016-03-06 21:46:35 +02: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
e53ba1d9da
Decouple ParamContainer which makes the code cleaner, and fix kemal.cr
...
url -- by @sdogruyol
2016-03-06 14:08:59 +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
8f6b00ba55
decoupled-urlparams-from-routehandler
2016-02-19 12:45:25 +01:00
Joris Moriau
c5201f01ad
added verb for filters and minor improvements
2016-02-17 10:34:01 +01:00
Sdogruyol
ffc3d6d224
Don't require yaml
2016-02-10 22:02:10 +02:00
Sdogruyol
467a1b4581
Rename handlers
2016-02-03 22:08:54 +02:00
Fatih Kadir Akın
ce1f595c5d
Remove param parsing with regex since Radix has state-machine implementation which is a way faster
2016-01-25 22:52:41 +02:00
Sdogruyol
788c7241d4
Handle cases when logger can be nil
2016-01-18 17:25:52 +02:00