Vladislav Oleshko
34d8bd34bc
Add template keyword to CROW_MIDDLEWARES
2022-07-24 00:31:34 +03:00
The-EDev
25eefa1711
Addressed code reviews + small tweaks (unit test and paser.done())
2022-07-22 17:17:38 +03:00
The-EDev
b986d1e38a
Find the route as soon as the URL is parsed
2022-07-22 17:17:38 +03:00
Vladislav Oleshko
c105a86a7a
Fix struct/class divergence
2022-07-22 00:45:40 +03:00
Alireza Mohammadi
8ee2a0f93d
Fix build warnings
2022-07-20 14:59:56 +04:30
Iulian Radu
31160579ea
Update multipart.h
...
format
2022-07-18 22:08:44 +03:00
Radu Iulian
b89d13ac3b
fixed formatting
2022-07-18 21:42:14 +03:00
Radu Iulian
a4bab45fcd
get_part_by_name doesn't crash on nonexistent keys
2022-07-18 21:03:42 +03:00
Luca Schlecker
6128a0df11
Merge branch 'master' into sessions
2022-07-14 19:42:55 +02:00
Vladislav Oleshko
cee7f78ec8
Small fixes
2022-07-14 20:20:34 +03:00
Vladislav Oleshko
fb327f4a88
formatting
2022-07-10 14:52:31 +03:00
Vladislav Oleshko
c6255750e6
Reuse cookie parser constructor
2022-07-10 14:45:40 +03:00
Alexander Goussas
1bdcd317b7
add response constructor overload
2022-07-05 17:14:50 -05:00
Vladislav
36e59f07ec
Merge branch 'master' into sessions
2022-07-04 12:54:15 +03:00
Vladislav Oleshko
f505c152e1
Remove custom keys
2022-07-04 12:27:25 +03:00
Vladislav Oleshko
cbdb127b98
Small naming fixes
2022-07-04 10:50:14 +03:00
erik
fcd38e7447
Fixed bug: Could not define route for HEAD method
...
Defining a HEAD method would give HTTP error code 405 (Method Not Allowed) and
calling OPTIONS on the route would return HEAD twice in the Allow header.
2022-06-30 08:07:11 +02:00
The-EDev
79eec91f00
Fixed issue where an index in qs_parse is incorrectly incremented beyond the maximum possible value
2022-06-27 22:38:24 +03:00
Vladislav
b7022e5fa2
Merge branch 'master' into sessions
2022-06-25 15:42:17 +03:00
Vladislav Oleshko
2e0e5935ff
Add docs, fix comment
2022-06-23 13:19:47 +03:00
Vladislav Oleshko
a251928732
Add more comments to example, small fixes
2022-06-23 10:59:44 +03:00
Vladislav Oleshko
93710edd77
Merge branch 'master' into sessions
2022-06-22 20:47:47 +03:00
Vladislav Oleshko
4c5807de81
Support char[]/char* for set/get, small fixes
2022-06-22 20:47:13 +03:00
MichaelSB
97405c88ab
Merge branch 'master' into response_check_file_type
2022-06-22 19:45:22 +02:00
Luca Schlecker
3a485078b8
rework the way asio is handled as a dependency.
2022-06-22 18:14:09 +02:00
MichaelSB
6d6d36d9b6
Merge branch 'master' into response_check_file_type
2022-06-22 16:55:18 +02:00
Vladislav Oleshko
ea4c672a41
Emulate variant with json wvalue for C++11/14
2022-06-22 17:02:16 +03:00
Michael Schreckenbauer
83cde80023
added comment on S_ISREG
2022-06-22 15:00:00 +02:00
MichaelSB
5f73f39ea7
Simplified condition for defining S_ISREG
...
Co-authored-by: Farook Al-Sammarraie <farook@the-e-dev.com>
2022-06-22 14:54:52 +02:00
Vladislav Oleshko
6b6eb5eb0b
Merge branch 'master' into sessions
2022-06-22 15:21:34 +03:00
Vladislav Oleshko
a9135bddd5
Move out from detail namespace, small changes
2022-06-22 15:18:32 +03:00
Michael Schreckenbauer
cde0e67b06
move includes outside namespace crow
2022-06-22 11:16:33 +02:00
Michael Schreckenbauer
beb6e86b1e
Merge branch 'response_check_file_type' of github.com:MichaelSB/Crow into response_check_file_type
2022-06-22 10:55:51 +02:00
Michael Schreckenbauer
df3d7cad41
define S_ISREG on windows
2022-06-22 10:54:25 +02:00
MichaelSB
b788fc43c5
Merge branch 'master' into response_check_file_type
2022-06-22 10:53:37 +02:00
Vladislav Oleshko
4df3f2f171
Add expiration tracker
2022-06-21 23:52:21 +03:00
Vladislav Oleshko
9ed2e32905
Remove boost impl, unify integral types
2022-06-21 17:05:31 +03:00
Vladislav Oleshko
29c657df8f
Add session id preset, remove boost filesystem, small fixes
2022-06-21 15:38:22 +03:00
Farook Al-Sammarraie
454dabdba2
formatting
2022-06-21 02:56:07 +03:00
The-EDev
ab2a132bff
fixed error in json float dump (where a pointer was checked against nullptr instead of '\0')
2022-06-21 02:25:42 +03:00
The-EDev
6f832f82fa
added message string to websocket error handler
2022-06-21 02:23:51 +03:00
MichaelSB
a3307170cf
Merge branch 'master' into response_check_file_type
2022-06-20 08:00:44 +02:00
Alexander Goussas
29d50e8df2
overload template_t::render to accept context as an r-value
2022-06-20 06:25:13 +03:00
The-EDev
c2d1bfac38
Fix wvalue::Operator = (wvalue && r);
2022-06-20 05:52:30 +03:00
MichaelSB
719929b930
Merge branch 'master' into response_check_file_type
2022-06-18 19:27:10 +02:00
Luca Schlecker
02bbbde8b7
add comment to trim
function, use it correctly and remove redundant whitespace checks in CookieParser
.
2022-06-18 17:21:37 +03:00
Luca Schlecker
e7a04859fe
r_string: combine equality operation algorithm.
...
A private templated function containing the algorithm is used to prevent repetition.
2022-06-18 17:21:37 +03:00
Luca Schlecker
126d79dc38
cookie_parser & query_string: use std::unique_ptr instead of raw pointers.
2022-06-18 17:21:37 +03:00
Luca Schlecker
9f98a66cd1
utility: improve string_equals function.
...
Return early if inequality is found.
2022-06-18 17:21:37 +03:00
Luca Schlecker
2fbf93e211
replace std::error_code with asio::error_code.
...
This makes the code more consistent and also reflects the intention a little better.
2022-06-18 17:21:37 +03:00
Luca Schlecker
9cffc3f268
json: add missing r_string comparison operator.
2022-06-18 17:21:37 +03:00
Luca Schlecker
6c4ad07a62
utility: trim and lexical_cast were missing inline static
leading to compilation errors.
2022-06-18 17:21:37 +03:00
Luca Schlecker
4aa9b3e89b
json: replace std::equal to maintain C++11 compatibility.
2022-06-18 17:21:37 +03:00
Luca Schlecker
5336d0fff7
json: replace remaining boost functions with their std equivalent.
2022-06-18 17:21:37 +03:00
Luca Schlecker
60ca594b91
cookie_parser: use utility::trim instead of boost::trim.
2022-06-18 17:21:37 +03:00
Luca Schlecker
982e62eabf
utility: add string trimming function.
2022-06-18 17:21:37 +03:00
Luca Schlecker
8d0d4c80ee
Remove usage of boost::optional.
...
Move to pointers instead.
This implementation relies on the safe deletion of `nullptr`.
2022-06-18 17:21:37 +03:00
Luca Schlecker
5b1c5a9e9e
removing some boost includes, fixing version checks and further phase out boost.
2022-06-18 17:21:37 +03:00
Luca Schlecker
df92d6d639
replace boost::lexical_cast with an equivalent based on std::stringstream.
2022-06-18 17:21:37 +03:00
Luca Schlecker
61d27e3b82
ci_map: replace boost::hash_combine with member function.
2022-06-18 17:21:37 +03:00
Luca Schlecker
f3d00bbecf
replace boost::asio with standalone asio.
2022-06-18 17:21:37 +03:00
Luca Schlecker
c780642dd8
http_server: replace boost::asio::deadline_timer with a standalone asio equivalent.
2022-06-18 17:21:37 +03:00
Luca Schlecker
2f87414769
replace usage of boost::iequals with utility::string_equals.
2022-06-18 17:21:37 +03:00
Luca Schlecker
f3dba60efd
utility: add string_equals function.
...
It serves as a replacement for boost::iequals.
2022-06-18 17:21:37 +03:00
Luca Schlecker
58583bf1a5
deboostify task_timer.
2022-06-18 17:21:37 +03:00
Luca Schlecker
78f764791e
remove 'using namespace boost' declarations.
2022-06-18 17:21:37 +03:00
Michael Schreckenbauer
c593fbb3b4
only allow regular files in set_static_file_info, return 404 in all other cases
2022-06-15 09:20:11 +02:00
erik
3782044249
Fixed race condition: calling stop() immediately after async_run() and wait_for_server_start() could lead to deadlock
...
This is the case in some short, simple unit tests, such as "get_port".
2022-06-13 10:53:27 +02:00
Alexander Goussas
6bac5d948b
fix qs_parse eating first character in form keys
2022-06-11 21:44:53 -05:00
Michael Schreckenbauer
efee71745b
do not try to read from websocket after sending and receiving the close frame
2022-06-04 12:14:46 +02:00
Michael Schreckenbauer
5ef370c519
erase websocket::connection from vector in App::remove_websocket()
2022-06-03 07:44:57 +02:00
Vladislav Oleshko
b939dd4f1d
Small fixes
2022-05-28 17:59:33 +03:00
Vladislav Oleshko
f46bdc1a24
First iteration of sessions
2022-05-28 16:42:25 +03:00
Michael Schreckenbauer
65fcdea968
allow setting userdata in onaccept of websocket-connection
2022-05-27 14:06:12 +02:00
Vladislav Oleshko
946292747e
Small fixes
2022-05-23 20:17:49 +03:00
Vladislav
94fa9f77f6
Merge branch 'master' into app-constructor
2022-05-23 20:12:55 +03:00
Farook Al-Sammarraie
a6bf90fa8b
Merge branch 'master' into blueprint-middleware
2022-05-23 09:43:17 +03:00
The-EDev
cd67331fad
formatting
2022-05-21 14:51:48 +03:00
The-EDev
94a05b854a
changed functionality to avoid circular include
2022-05-21 12:32:32 +03:00
The-EDev
387c222ea2
added creating qs from request body functionality + updated doc
2022-05-20 22:36:32 +03:00
The-EDev
f2b63f23f5
Fix for issue where app.stop() blocks when a websocket is open
2022-05-20 14:14:55 +03:00
Farook Al-Sammarraie
3e6c097733
Merge branch 'master' into #421-Websockets-should-support-a-maximum-payload
2022-05-18 20:04:38 +03:00
konrad
7e4f57486c
Add extra log when status code is not defined.
...
Just to document behaviour when returning status that is
not well-known.
2022-05-18 15:57:46 +03:00
The-EDev
5fcaa19163
should_close_ -> shutting_down_
2022-05-18 14:08:40 +03:00
The-EDev
cfc4281e3b
Prevent acceptor from taking new connections while websockets close
2022-05-18 13:49:50 +03:00
Farook Al-Sammarraie
e7007cfbce
Merge branch 'master' into blueprint-middleware
2022-05-18 13:30:13 +03:00
The-EDev
4128e5c27d
further formatting
2022-05-18 12:40:11 +03:00
The-EDev
333b49bf04
Replaced do_not_destroy_
with adaptor_.shutdown_readwrite()
+
...
formatting
2022-05-18 12:28:51 +03:00
The-EDev
57c3b43ac0
Fixed small bugs in code
2022-05-16 19:14:51 +03:00
oscar.chen
487c4e6c08
removing unneeded variable
2022-05-15 01:34:29 -07:00
oscar.chen
f0ea634c01
fix copy paste error
2022-05-15 01:21:34 -07:00
oscar.chen
a0a1925630
Pass the max payload in Connection constructor
2022-05-15 01:01:24 -07:00
oscar.chen
cdba76739f
fix clang format
2022-05-14 19:35:45 -07:00
oscar.chen
7164517622
use arrow not .
2022-05-14 19:10:05 -07:00
oscar.chen
89d99f6ae9
add missing commas
2022-05-14 18:46:49 -07:00
oscar.chen
a30f0f6e4f
fix wrong intializer syntax
2022-05-14 18:20:46 -07:00
oscar.chen
aa75fc108d
fix wrong comment
2022-05-14 17:58:53 -07:00
oscar.chen
aaeaf9922e
fix clang format
2022-05-14 17:54:21 -07:00
oscar.chen
4daf126df0
Add websocket payload size for both app and WebsocketRule
2022-05-14 17:51:51 -07:00
The-EDev
e5fe4e6e26
Used App reference to get websocket count and signals.
...
Also fixed issue where enabling SSL prevented compilation.
2022-05-15 01:15:39 +03:00