Luca Schlecker
5823a5984e
remove the need for #define CROW_MAIN
.
...
This is achieved using the conts type qualifier as it gives internal linkage.
fixes #273
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-21 17:25:16 +01:00
Farook Al-Sammarraie
b1718befaa
Merge pull request #278 from CrowCpp/wip-luca-schlecker
...
Replace `dumb_timer_queue` with new `task_timer`
2021-11-21 18:07:48 +03:00
Luca Schlecker
250c793c48
http_server: fix reordering warning.
...
The introduced `timeout_` variable was initialized in a different order than the member initializer list suggested.
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-21 15:45:46 +01:00
Luca Schlecker
118c992e0d
task_timer: align comment style with Crow's.
...
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-21 15:45:40 +01:00
Luca Schlecker
6458184e8f
task_timer: rename set_timeout
to schedule
.
...
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-20 17:03:58 +01:00
Luca Schlecker
403d0dcffd
add unit test for task_timer.
...
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-20 16:56:26 +01:00
Luca Schlecker
de92d28f29
replace dumb_timer_queue
with new task_timer
.
...
fixes #264 , lays ground for #273 and #257 .
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-19 18:55:10 +01:00
Farook Al-Sammarraie
22d3918345
Merge pull request #277 from CrowCpp/wip-luca-schlecker
...
Add unit test for server timeout.
2021-11-17 23:07:06 +03:00
Luca Schlecker
b47e0adcf7
add unit test for server timeout.
...
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-17 19:42:36 +01:00
Farook Al-Sammarraie
8cf97cfa29
Merge pull request #276 from nx10/master
...
Get app port
2021-11-15 15:53:07 +03:00
Farook Al-Sammarraie
7f8629075d
Added newline to end of unittest.cpp
2021-11-15 15:52:33 +03:00
Florian Rupprecht
5bb7fac016
Get app port
2021-11-14 13:04:19 +01:00
Farook Al-Sammarraie
f3c9306a95
Merge branch 'master' into ws_close
2021-11-09 01:05:06 +03:00
Farook Al-Sammarraie
4ac5892160
Merge pull request #270 from CrowCpp/docs_meta
...
Mkdocs fixes
2021-11-06 21:21:25 +03:00
The-EDev
2665086a49
multiple docs changes:
...
Added meta tags for homepage
Added meta description generator
Removed usages of <h1> (mkdocs-material doesn't reconize more than 1)
added space after # (markdown proper syntax)
removed pip3 command from pull request CI
2021-11-06 11:54:29 +03:00
The-EDev
fd6de9bc05
Added functionality to close websocket connections before the app is
...
terminated.
This is incomplete and needs more work.
2021-11-06 06:06:18 +03:00
Farook Al-Sammarraie
b5137c52a1
Merge pull request #265 from Leon0402/feature/cpp20Support
...
MSVC C++20 Support
2021-11-03 20:43:04 +03:00
Farook Al-Sammarraie
2dc07aaa7e
Merge branch 'master' into feature/cpp20Support
2021-11-03 20:07:59 +03:00
The-EDev
6f2eedaf9b
added Catch2 to Attributions section in README
2021-11-03 05:19:25 +03:00
Farook Al-Sammarraie
e48e1facd9
Merge pull request #262 from CrowCpp/http09_get_only
...
Use only GET on HTTP/0.9
2021-11-02 21:15:40 +03:00
Farook Al-Sammarraie
2e7d5f30f8
Merge branch 'master' into http09_get_only
2021-11-02 21:15:05 +03:00
Farook Al-Sammarraie
c45514c79d
Merge pull request #263 from CrowCpp/ws_conn_remote_ip
...
Add `get_remote_ip` method to `websocket::connection`
2021-11-02 21:14:31 +03:00
Farook Al-Sammarraie
05a4b82bd5
Merge branch 'master' into http09_get_only
2021-11-02 00:00:03 +03:00
The-EDev
85e85c3e64
allow remote IP to be accessed from websocket object
2021-11-01 23:57:21 +03:00
Farook Al-Sammarraie
8f26cea2a6
Merge pull request #260 from CrowCpp/b64_decode
...
Added base64 decoder
2021-11-01 23:47:56 +03:00
The-EDev
9b3f83a06f
Fixed issue in Test message formulation
2021-11-01 21:10:45 +03:00
The-EDev
ed8d1ebaaa
Added checks for GET on HTTP/0.9 and any other errors
...
Earlier behavior only checked whether every byte was parsed, which isn't
ideal
Signed-off-by: The-EDev <farook@the-e-dev.com>
2021-11-01 12:02:25 +03:00
Leon De Andrade
06e665ec93
Cpp17 flag for msvc
2021-10-31 20:25:11 +01:00
Leon De Andrade
aa5211d76d
Use invoke_result for C++20
2021-10-31 19:19:44 +01:00
The-EDev
576f90a0e4
Added Base64 decoder function and Base 64 unit tests
2021-10-31 02:50:19 +03:00
Farook Al-Sammarraie
ea64dfaacc
Merge pull request #252 from CrowCpp/release.sh
...
Replaced release.py with release.sh
2021-10-27 11:47:18 +03:00
The-EDev
33114b7090
corrected typo in final instructions
2021-10-27 11:15:42 +03:00
Farook
48408bf863
replaced '..' paths with a variable
2021-10-25 12:59:51 +03:00
Farook
03e5b354ee
Replaced python script with shell script for making releases
...
This is because the python script for the most part only executed system commands
I also fixed a bug in the script where v5.13 (for example) would be parsed as v5.1
2021-10-24 15:43:05 +03:00
Farook Al-Sammarraie
cb78e796b4
Merge pull request #242 from CrowCpp/fix_macos
...
Make Crow compile on MacOS
2021-10-23 03:05:59 +03:00
Farook
eefe8f62bf
made it so that workarounds would only run if the user is on an apple machine
2021-10-22 14:27:10 +03:00
Luca Schlecker
7f7eac95a6
Merge branch 'master' into fix_macos
2021-10-14 10:36:03 +02:00
Farook Al-Sammarraie
8f24107e6c
Merge pull request #245 from CrowCpp/custom_rst
...
Added stream threshold option
2021-10-13 14:56:30 +03:00
The-EDev
20c7720f72
Made crow's streaming threshold changeable through app.stream_threshold (I also added a getter for it to avoid sending it to the server then the connection)
2021-10-12 15:35:08 +03:00
The-EDev
efd55597f0
changed json and app code (relating to blueprints and initializer list)
...
also snuck in some guide updates
2021-10-10 14:42:36 +03:00
Farook Al-Sammarraie
2780e31e27
Merge pull request #241 from CrowCpp/fix_example_chat
...
Fix for example_chat
2021-10-06 20:20:11 +03:00
The-EDev
616702d7e8
fixed issue where example_chat wouldn't be able to find example_chat.html due to copying error
2021-10-06 17:24:05 +03:00
Farook Al-Sammarraie
63dcfb079d
Merge pull request #234 from CrowCpp/fix_stream_res
...
potential stream response test fix
2021-10-06 15:41:08 +03:00
Farook Al-Sammarraie
2bb2993f9d
Merge branch 'master' into fix_stream_res
2021-10-06 14:42:12 +03:00
Farook Al-Sammarraie
b64657ea5a
Merge pull request #238 from CrowCpp/mkdocs_redirect
...
added getting_started URL redirection
2021-10-06 14:03:15 +03:00
The-EDev
9667e17a40
fixed bug introduced in last commit
2021-10-06 13:51:17 +03:00
The-EDev
20a2a83e69
added getting_started URL redirection
2021-10-06 13:34:37 +03:00
The-EDev
71639b6046
added named constants
2021-10-06 13:32:35 +03:00
The-EDev
85e9787575
changed the way "stream_response" test handled incoming data
...
This will either fix the issue (223), be generally better than the previous way the test was conducted, or change the failure rate from 70% to 100%
2021-10-05 15:13:38 +03:00
Farook Al-Sammarraie
41468b0ccd
Merge pull request #228 from CrowCpp/revamped_setup
...
Revamped setup
2021-10-05 13:33:12 +03:00