Farook Al-Sammarraie
7e72f2801a
Merge pull request #134 from wentasah/doc-fix
...
Fix CROW_MAIN documentation
2021-05-18 19:34:14 +03:00
Michal Sojka
57175a5e57
Fix CROW_MAIN documentation
2021-05-18 18:29:52 +02:00
Maxime BELUGUET
811ef62c6f
Fix constness on json dump method #133
2021-05-18 18:10:39 +02:00
Farook Al-Sammarraie
361023bf08
Merge pull request #132 from CrowCpp/quality_of_life
...
Quality of life improvements
2021-05-13 13:45:29 +03:00
The-EDev
0e9b615c2b
fixed typos
2021-05-13 13:30:48 +03:00
The-EDev
f39b9ddce7
Quality of life improvements
...
Added pop() method to query_string, same as get(), but removes the item from the querystring
Added std::string() operator to json::rvalue (allows std::string(json["abc"]), which returns any value that isn't a container to string)
Added lo() method to json::rvalue, returns a vector of json::rvalue containing whatever a json object or list has (difference being a list has no keys)
Added keys() method to json::rvalue, returns a vector of std::string containing the keys of a json object
Made json::wvalue use either std::map or std::unordered_map instead of just std::unordered_map
Added copy constructor to json::wvalue
Added size() method to json::wvalue, returns 1 or the size of the json list.
Added constructor to create json::wvalue from std::vector
Added keys() method to query_string
Documented query_string and improved json doc
Made tests and examples for all the additions
2021-05-12 15:45:55 +03:00
Farook Al-Sammarraie
301e535ca2
Merge pull request #129 from CrowCpp/mustache_coveralls
...
coverage fix for mustache + coveralls job id specification from drone
2021-04-14 19:10:41 +03:00
The-EDev
7df4b998b6
coverage fix for mustache + coveralls job id specification from drone
2021-04-14 14:03:27 +03:00
Farook Al-Sammarraie
027db780bd
Merge pull request #126 from CrowCpp/catch_all
...
Added Catchall route to Crow
2021-04-14 10:07:45 +03:00
The-EDev
5b7b066c68
fixed typo and incorrect type in assert error
2021-04-14 04:55:27 +03:00
Farook Al-Sammarraie
5f91587479
Merge branch 'master' into catch_all
2021-04-12 23:45:07 +03:00
Farook Al-Sammarraie
1087c2fb12
Merge pull request #128 from CrowCpp/double_logging
...
fixed issue where response is logged twice
2021-04-12 23:44:49 +03:00
The-EDev
738abdbd96
fixed issue where response is logged twice
2021-04-12 20:11:03 +03:00
Farook Al-Sammarraie
4aae614297
Merge branch 'master' into catch_all
2021-04-12 10:49:29 +03:00
The-EDev
16ae11a4e3
updated catchall to use references instead of pointers
2021-04-12 10:41:55 +03:00
The-EDev
f779a0f8a4
changed catchall to fit with the rest of crow
...
the macro is similar to CROW_ROUTE, added example to cmake, added unit test, and documentation
2021-04-12 08:25:09 +03:00
Farook Al-Sammarraie
4a663c97d9
Merge pull request #120 from CrowCpp/coveralls_fix
...
fix for coveralls not appearing in github status
2021-04-07 09:40:37 +03:00
Farook Al-Sammarraie
9213118fab
Merge branch 'master' into coveralls_fix
2021-04-07 03:36:31 +03:00
The-EDev
570ed2e04e
changed CI_BRANCH to TRAVIS_BRANCH
...
I do not know why this works, but it worked on my test repository
2021-04-07 03:36:11 +03:00
Farook Al-Sammarraie
c3fcda1a77
Merge pull request #124 from ugermann/master
...
Fix error in examples/CMakeLists.txt
2021-04-06 14:59:30 +03:00
Ulrich Germann
e592e6b4f2
Fix error in examples/CMakeLists.txt
...
cmake 3.19 complained about Line 49:
> CMake Error at examples/CMakeLists.txt:49 (target_link_libraries):
> The keyword signature for target_link_libraries has already been used with
> the target "basic_example". All uses of target_link_libraries with a
> target must be either all-keyword or all-plain.
>
> The uses of the keyword signature are here:
>
> * examples/CMakeLists.txt:46 (target_link_libraries)
The reason is the missing keyword PRIVATE/INTERFACE/PUBLIC in the offending line.
This edit fixes this.
2021-04-06 11:17:51 +00:00
The-EDev
d569d121c0
fixed incorrect branch variable being used
2021-04-06 10:39:35 +03:00
Farook Al-Sammarraie
03e0f06551
Merge pull request #118 from CrowCpp/crow_main_polish
...
CROW_MAIN docs and script
2021-04-05 22:18:16 +03:00
Farook Al-Sammarraie
68db38ed98
Merge branch 'master' into crow_main_polish
2021-04-05 22:17:11 +03:00
Farook Al-Sammarraie
6cdecf5ca8
Merge pull request #119 from CrowCpp/actual_port
...
use actual ASIO port instead of the local port variable
2021-04-05 22:15:49 +03:00
Farook Al-Sammarraie
0d7c8ed617
Merge pull request #122 from Tibbel/master
...
Add a catch-all handler 2nd version
2021-04-05 14:16:56 +03:00
Tibbel
7ad1b79b7a
Delete example_catchall.cpp
2021-04-05 10:21:58 +02:00
Tibbel
76203052e7
Add files via upload
2021-04-05 10:21:14 +02:00
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