Commit Graph

141 Commits

Author SHA1 Message Date
Farook Al-Sammarraie
7fa73907f8
removed main function 2020-10-20 10:21:29 +03:00
Farook Al-Sammarraie
65b12e88e8
Merge branch 'master' into multipart 2020-10-20 10:10:52 +03:00
Igor Mróz
ba5f62a512
Enable debug in tests. 2020-10-20 08:23:40 +02:00
Igor Mróz
d33f04c7e7
CMakeLists small changes. Add clang-format config. Remove Makefile. 2020-10-19 18:32:16 +02:00
Igor Mróz
7b8b72bd11
Remove conanfile. Update mustache specification jsons. Remove compilation warnings. Update CMake version. Change test framework to Catch2. 2020-10-19 18:32:16 +02:00
The-EDev
e06942dfc4 added test
funny enough, the test pointed out a mistake i made in the code XD
2020-10-18 02:36:39 +03:00
The-EDev
88904e4716 added test for 405 code on wrong method 2020-10-15 01:24:26 +03:00
The-EDev
43b465a9ad automated copying cat.jpg file
tests can now run without a problem
2020-10-13 11:04:46 +03:00
The-EDev
3a22fd5199 added sendfile test
Test cannot actually test whether the file was sent or not since the test has no access to the socket itself (also idk how to get data that was passed through a socket)
2020-10-13 00:52:15 +03:00
ipknHama
b7360a2bac Support multiple methods for same URL
- fix broken unittests because of server initializing order change
 - add a function to wait until server is up
2017-12-25 15:31:20 +09:00
ipknHama
daa1e3eadc Add PURGE method, add a special enum item for counting 2017-12-25 15:31:20 +09:00
Erik Åldstedt Sund
ecbbd0ebf2 Fixed ostream operator for big integers 2017-10-30 20:47:48 +01:00
Erik Åldstedt Sund
4fe7dd171a Handle big integers in json::wvalue
Handled by adding an enum num_type in both rvalue and wvalue (to separate
between signed/unsigned ints, and floating point values) and a union for
the number value in wvalue.
2017-10-30 20:47:48 +01:00
BooD
8b01385465 Add HTTP PATCH support 2017-10-05 18:13:40 +03:00
ipknHama
e93ba25f2c Fix cookie parsing: Cookie doesn't have escaping mechanism. 2017-09-18 02:39:46 +09:00
ipknHama
3081e4e1a8 Cleanup include folder into crow subfolder
- only crow.h is exposed now
2016-09-21 23:11:06 +09:00
Jaeseung Ha
e9d41a6373 Remove warnings 2016-09-06 09:40:30 +09:00
ipknHama
f88b56dff0 Add u() for uint64_t: manually applying #129 2016-08-27 18:12:17 +09:00
ipknHama
e161da45e0 Remove warnings: manually applying #101, #104 2016-08-27 18:03:49 +09:00
Gino Maisto
1b1210685e Bind to interface support: fixed unittest 2016-03-19 16:05:48 +01:00
Chao Mai
4b858c2073 change to std::move 2015-07-12 02:07:47 +08:00
Chao Mai
36c90f4401 fix build problem 2015-07-12 00:43:48 +08:00
Bryce Anderson
243995f36f Fix memory error and invalid param when no params are present
Also added a unit test that fails with the previous behavior.
Note that `-fsanitize=address` exposes the invalid memory access in
qs_parse.
2015-04-30 20:56:28 -04:00
ipknHama
5d8d527639 add run-time check for handler type for route_dynamic 2015-02-19 12:16:28 +09:00
ipknHama
d564d486b5 added route_dynamic 2015-02-19 00:57:01 +09:00
Jaeseung Ha
07042b55fd fix #27 : handling routes with trailing slash 2015-01-19 19:03:06 +09:00
ipknHama
3fc1424e62 fix issue #39, bug at assigning vector to json wvalue 2015-01-08 08:22:06 +09: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
f52778f04d Fixes a bug that crow::json failed to parse double value starting with 0 2014-11-09 08:52:23 +09:00
Antony Woods
6d24711208 Added boolean types to json rvalue (.b()) including tests 2014-11-06 14:10:38 +00:00
ipknHama
023455ba58 add building test for crow_all.h 2014-10-24 01:20:19 +09: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
ipknHama
532eb71e2b add pragma once to settings.h, set log level to DEBUG for unittest 2014-09-14 20:04:27 +09:00
ipknHama
6ee8bd992e added test case for handling repeated request wrong 2014-09-14 08:16:49 +09:00
ipknHama
9eb96b7f4c Implement example CookieParser middleware and test 2014-09-11 06:32:41 +09:00
ipknHama
ab1063c046 complete middleware implementation 2014-09-08 07:07:53 +09:00
ipknHama
2748e35430 basic middleware test: before_handler 2014-09-07 04:30:53 +09:00
ipknHama
c89cafa820 add Middlewares template to Crow main class, context implementation 2014-09-07 01:24:45 +09:00
ipknHama
031615ac86 source resturcturing + CMake 2014-08-07 01:18:33 +09:00