Commit Graph

262 Commits

Author SHA1 Message Date
ipknHama
3fc1424e62 fix issue #39, bug at assigning vector to json wvalue 2015-01-08 08:22:06 +09:00
ipkn
345174564a Merge pull request #44 from nakosung/master
fixed typo
2015-01-06 22:07:44 +09:00
Nako Sung
067f60cefa fixed typo 2015-01-02 11:54:30 +09:00
ipknHama
dc477a2df1 fix add_json to handle POST request 2014-12-15 21:52:42 +09:00
ipknHama
aa36502cf2 Merge branch 'acron0-try-catch-handle' 2014-12-12 07:30:58 +09:00
ipknHama
f6fdf68fe2 Merge branch 'try-catch-handle' of https://github.com/acron0/crow into acron0-try-catch-handle
Conflicts:
	amalgamate/crow_all.h
2014-12-12 07:29:08 +09:00
ipknHama
aa37844cca Merge branch 'xenosoz-master' 2014-12-12 05:40:18 +09:00
Xenosoz Hwang
2e67eff80e Add missing dynamic shared object info
A linker option '-lpthread' was required on my Gentoo system.
2014-12-12 05:38:29 +09:00
ipknHama
ad654da711 Merge branch 'acron0-get-middleware2' 2014-12-12 01:48:56 +09:00
ipknHama
966867a9ca change pointer to reference; fix up spaces 2014-12-12 01:38:57 +09:00
Antony Woods
c2f75a7de1 Merged upstream 2014-12-10 17:29:31 +00:00
Antony Woods
a1751967c3 Added a general purpose try-catch around handle() for instances where an exception would cause the server to never return a response. At some later date we would possibly still wish to provide a custom hook for dealing with 500s. Also note, after an exception is caught, the generated 500 response is still sent to middleware handlers 2014-12-10 17:24:13 +00:00
ipkn
21b027774e Merge pull request #38 from acron0/json-bool
Added boolean types to json rvalue (.b()) including test
2014-11-12 09:23:21 +09:00
ipknHama
79e8fa19f6 amalgamation update 2014-11-09 09:10:46 +09:00
ipknHama
f52778f04d Fixes a bug that crow::json failed to parse double value starting with 0 2014-11-09 08:52:23 +09:00
Jaeseung Ha
49cad23ac9 Fixes #32 by chaing types for operator overloading from int32_t to int, long 2014-11-09 08:20:04 +09:00
Jaeseung Ha
11128435cd fix query_string bug that crashed test 2014-11-09 08:20:04 +09:00
ipkn
3ec459e477 Update README.md 2014-11-08 08:53:58 +09:00
Antony Woods
5120b127b0 Merged changes from master 2014-11-06 14:16:07 +00:00
Antony Woods
6d24711208 Added boolean types to json rvalue (.b()) including tests 2014-11-06 14:10:38 +00:00
ipkn
ccc5845c3e Merge pull request #36 from acron0/auto-json-content-type
Responses now auto to 'application/json' when constructed using json::wvalue
2014-11-05 03:07:15 +09:00
Antony Woods
738d5d47b5 Responses constructed from json::wvalue now automatically set the appropriate Content-Type header 2014-11-04 17:12:52 +00:00
Antony Woods
693aac108d Post-pull commit 2014-10-24 09:40:09 +01:00
ipknHama
4b3b8070e7 added missing header for amalgate 2014-10-24 04:17:20 +09:00
ipknHama
bdc9dd8d48 added missing header for amalgate 2014-10-24 02:45:34 +09:00
Antony Woods
27bf11d35c Re-implemented 'get_middleware()' as suggested, without changing the Server constructor and now no longer encountering hangs 2014-10-23 18:33:03 +01:00
ipknHama
111b346312 add missing example_with_all.cpp file 2014-10-24 02:12:28 +09:00
ipkn
33b55bd048 Merge pull request #33 from acron0/unlink-http-parser
Removed http-parser submodule
2014-10-24 02:11:10 +09:00
ipknHama
023455ba58 add building test for crow_all.h 2014-10-24 01:20:19 +09:00
ipknHama
5c5c8fb4f5 improve code quality
add missing includes (for amalgation)
remove register keyword (remove clang warning)
change define names to avoid name collision
remove url size limit from query_string.h
change MAX_KV_PAIRS define to const variable
add & to arguments
readability improve (although it requires additional allocation)
2014-10-24 01:18:29 +09:00
ipkn
4965d495a7 Merge pull request #28 from acron0/url-params-in-req
Added URL params (request.url_params)
2014-10-23 23:44:31 +09:00
Antony Woods
ada3039707 Fixed compiler errors and inlines some of the qs_parse functions 2014-10-22 09:40:33 +01:00
Antony Woods
3a2d22dfe0 Removed instance of 'using namespace std' 2014-10-22 09:34:30 +01:00
Antony Woods
baa115a76d Removed http-parser submodule 2014-10-15 18:20:48 +01:00
Antony Woods
6a2def410c Fixed merge oddities 2014-10-14 18:25:22 +01:00
Antony Woods
06842721d7 Wrapped qs_parse as query_string and added tests 2014-10-14 09:48:35 +01:00
ipknHama
a5fab23f70 HTTP GET/POST method distinguish 2014-10-07 21:51:24 +09:00
Antony Woods
a8f6c5a92f Merge branch 'master' of github.com:acron0/crow into url-params-in-req 2014-10-02 17:35:05 +01:00
ipknHama
d496f0f4b5 travis irc notification test 2014-09-28 19:42:30 +09:00
ipknHama
3e5e91c424 Now amalgamation will be updated automatically. 2014-09-27 20:03:51 +09:00
Antony Woods
6890436742 Fixed sign comparisson warning 2014-09-23 21:02:26 +01:00
Antony Woods
54fb4fa3d4 Merge branch 'master' of github.com:acron0/crow into url-params-in-req 2014-09-23 20:42:32 +01:00
Antony Woods
3b4bf01a7d URL params are now present as a ci_map variable of request 2014-09-22 21:34:22 +01:00
ipkn
bad75f25b8 fix bug in keep-alive header handling 2014-09-19 19:20:35 -04:00
ipknHama
2dfc58e904 support HTTP/1.0 keep alive (add corresponding header to response) 2014-09-20 06:30:18 +09:00
ipkn
c9e8bf3c64 Merge pull request #24 from acron0/url-params
Culling url params
2014-09-19 05:41:45 +09:00
Antony Woods
f213e0d66e Culling url params 2014-09-15 17:28:15 +01:00
ipknHama
301587b469 fix example_chat crash bug when using (req, res) handler 2014-09-14 20:12:18 +09:00
ipknHama
532eb71e2b add pragma once to settings.h, set log level to DEBUG for unittest 2014-09-14 20:04:27 +09:00
ipknHama
cfc3705ea4 update amalgamate 2014-09-14 08:18:09 +09:00