Commit Graph

973 Commits

Author SHA1 Message Date
Tibbel
97ef2945ed
CROW_CATCHALL #endif if moved
CROW_CATCHALL #endif if moved
2021-04-05 10:14:38 +02:00
Tibbel
8f6655b032
Merge pull request #1 from Tibbel/Tibbel-catchall-handler
Add a catch-all handler 2nd version
2021-04-05 09:46:23 +02:00
Tibbel
5b880cef49
Add a catch-all handler 2nd version
Here is the modified catchall-function
example added
the code moved to routing.h
only the setter remained in app.h
the integer return is removed
i personally don't need the default parameters:
without crow::response the catchall can take no effect
and without crow::request you know nothing about the request
i only imagine one case, this is to set custom error pages.
so i don't thing default parameters have any big benefit here.
"#ifdef CROW_CATCHALL" was only for me, to find my own modifications feel free to replace it
2021-04-05 09:44:35 +02:00
The-EDev
553fae93bb fixed issue where "drone ignored failing make or ctest commands unless nothing else ran afterwards" 2021-04-05 07:18:45 +03:00
The-EDev
598f60b83e potential fix for coveralls not appearing in github status 2021-04-04 22:01:34 +03:00
The-EDev
111bef9deb use actual ASIO port instead of the local port variable
this is useful when using port 0 to have the OS provide a free port
2021-04-04 08:09:59 +03:00
The-EDev
1eeda1a22b mentioned crow_main in docs and edited mime_types generating script to include it. 2021-04-04 07:47:14 +03:00
Farook Al-Sammarraie
3e43a73db9
Merge pull request #117 from CrowCpp/HEAD_and_OPTIONS
`HEAD` and `OPTIONS` handling
2021-04-03 17:21:10 +03:00
The-EDev
b837877715 updated head and no_length variable names 2021-04-03 13:48:36 +03:00
The-EDev
5f68479ee5 fixed small merge issue 2021-04-03 06:40:14 +03:00
Farook Al-Sammarraie
1654acbfd0
Merge branch 'master' into HEAD_and_OPTIONS 2021-04-03 06:31:45 +03:00
The-EDev
33e8631676 Added Content-Length header back to HEAD response.
The reason for removing it was an issue with Curl rather than how HEAD should be handled.
2021-04-03 06:21:18 +03:00
The-EDev
223ab5eb9f added note regarding HEAD and OPTIONS methods in documentation 2021-04-03 06:06:09 +03:00
The-EDev
ec566f87ef added tests and fixed small issues
moved body handling to Response.end() and fixed a bug where a 404 was not returned on a route that doesn't exist
2021-04-03 06:00:23 +03:00
The-EDev
06226b86a7 implemented proper HEAD handling, implemented OPTIONS handling 2021-04-03 05:33:40 +03:00
Farook Al-Sammarraie
5ab2607832
Merge pull request #106 from sfinktah/sfinktah-64bit-compat-1
recast 64-bit size_t to 32-bit int to remove warnings
2021-04-02 04:00:08 +03:00
Farook Al-Sammarraie
b826e9c228
Merge branch 'master' into sfinktah-64bit-compat-1 2021-04-02 03:36:09 +03:00
Farook Al-Sammarraie
2cfe822c3e
Merge pull request #111 from fckxorg/master
Fixed multiple definition issues
2021-04-02 03:35:32 +03:00
Maxim Kokryashkin
5a77744243 Merge remote-tracking branch 'upstream/master'
merge upstream
2021-04-02 01:56:07 +03:00
Farook Al-Sammarraie
6e4069decd
Merge pull request #114 from tibovanheule/patch-1
Small error in documentation
2021-04-01 16:57:09 +03:00
Maxim Kokryashkin
c4898bdb41 trigger ci 2021-04-01 16:47:45 +03:00
The-EDev
eeaa08281b changed crow_all.h generating command to python3
Should probably change it to run the script like a program. For now this is just to get drone running.
2021-04-01 08:59:40 +03:00
The-EDev
827715a1a6 Replaced Travis with Drone for CI
travis config remains just in case
2021-04-01 08:50:10 +03:00
Tibo Vanheule
a32d803e10
small error in documentation
LogLevel needs to be capitalized, see 51a8a977d9/include/crow/logging.h (L14)
2021-04-01 02:22:38 +02:00
Maxim Kokryashkin
cdce8f443a macro rename 2021-03-31 20:30:32 +03:00
Maxim Kokryashkin
a4ec6d06ce delete tags 2021-03-13 15:06:35 +03:00
Maxim Kokryashkin
86977e4c73 rm test logs 2021-03-13 14:33:45 +03:00
Maxim Kokryashkin
8a8199b992 rm test logs 2021-03-13 14:33:09 +03:00
The-EDev
6f5514743a added automatic HEAD method handling 2021-03-13 13:51:27 +03:00
Sfinktah Bungholio
21f6f11484 Merge branch 'master' of https://github.com/CrowCpp/crow into sfinktah-64bit-compat-1 2021-02-21 11:14:52 +11:00
Sfinktah Bungholio
6597feb3a8 converted all (int) to static_cast 2021-02-21 11:14:30 +11:00
Maxim Kokryashkin
ce7d08eb0e fixed issues with static wariables 2021-02-21 00:28:32 +03:00
Farook Al-Sammarraie
51a8a977d9
Merge pull request #109 from rittelle/fix-104
Properly clear responses
2021-02-15 15:24:42 +03:00
rittelle
3b151d569d Properly clear responses
Closes #104.
2021-02-12 13:21:59 +01:00
Farook Al-Sammarraie
1c505df69f
Merge pull request #101 from sfinktah/sfinktah-msvc17-compat-1
fixes for **some** msvc compatibility issues
2021-02-12 01:54:51 +03:00
Farook Al-Sammarraie
e15b50ed29
Merge branch 'master' into sfinktah-msvc17-compat-1 2021-02-12 01:43:56 +03:00
Farook Al-Sammarraie
21fb01ee36
Merge pull request #102 from CrowCpp/template_fixes
Template documentation fix + log when template is not found
2021-02-11 02:47:29 +03:00
Farook Al-Sammarraie
8289f21b66
Merge branch 'master' into template_fixes 2021-02-11 02:18:29 +03:00
Farook Al-Sammarraie
6cb131c948
Merge pull request #103 from rittelle/fix-cmakelists
Fix CMakeLists.txt for the use as a subdirectory in another project
2021-02-10 19:01:49 +03:00
Sfinktah Bungholio
b2cf780485 recast 64-bit size_t to 32-bit int to remove warnings 2021-02-10 21:03:21 +11:00
sfinktah
1918d2e58c
Removed unnecessary line.
Does anybody know whether the big red "Delete File" option when reviewing commit deletes the entire file from the repo or just from the commits (or the PR)?
2021-02-10 19:55:51 +11:00
rittelle
71576b7578
Fixed CMakeLists.txt
Replaced `${CMAKE_SOURCE_DIR}` with `${CMAKE_CURRENT_SOURCE_DIR}`.
2021-02-09 13:19:06 +01:00
The-EDev
8523afa930 Update templating.md and mustache.h
Updated templating documentation to mention "working directory" rather than "executable directory".
Added Warning log when a template is not found.
2021-02-09 06:52:05 +03:00
sfinktah
02f664c340
Update common.h
oops, had to remove #undef DELETE -- used to enable refactoring without MS DELETE macro getting in the way.
2021-02-09 03:29:07 +11:00
sfinktah
0bf0c43f39
Update example_with_all.cpp
oops, had to reverse a change i made to get it to compile as-is.
2021-02-09 03:27:50 +11:00
Sfinktah Bungholio
740bd266e7 fixes for **some** msvc compatibility issues 2021-02-09 03:25:02 +11:00
Farook Al-Sammarraie
4e801d085a
Merge pull request #93 from CrowCpp/zlib
Added HTTP compression using gzip or deflate
2021-01-23 00:39:19 +03:00
The-EDev
73240f1626 updated documentation to include zlib linking 2021-01-22 06:48:18 +03:00
The-EDev
94ec5c9c4d removed zlib notice since it's not part of the source code 2021-01-22 06:09:05 +03:00
The-EDev
747ad6db72 Merge branch 'master' 2021-01-21 21:37:55 +03:00