Corentin Schreiber
df756fed45
Use const std::string& as argument to route() ( #684 )
2024-01-29 18:10:20 +01:00
XandrOSS
bd86c26c6b
Get server running port, bindaddr and threads
...
- Added methods to get usefull information about running server instance:
std::uint16_t port() -> Get the port that Crow will handle requests on
std::string bindaddr() -> Get the address that Crow will handle requests on
std::uint16_t concurrency() -> Get the number of threads that server is using
2023-02-08 10:33:48 -05:00
Farook Al-Sammarraie
c1c707371c
Merge branch 'master' into feature/fix-websocket-route-macro
2022-12-10 13:35:12 +03:00
Simon Oehrl
cec165e29a
Adapt CROW_WEBSOCKET_ROUTE to accept app reference
2022-11-23 13:37:34 +01:00
okaestne
2970f81001
app: remove unused lambda caption
2022-11-08 10:32:37 +01:00
The-EDev
fba01dc76d
Prevent HTTP pipelining which Crow doesn't support.
2022-08-21 21:33:04 +03:00
Farook Al-Sammarraie
4e4dbec120
formatting
2022-07-25 13:56:54 +03:00
The-EDev
5f22a6562a
made CROW_STATIC_DIRECTORY and BP static directory more versatile (on
...
win and linux)
2022-07-25 13:56:54 +03:00
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
Luca Schlecker
f3d00bbecf
replace boost::asio with standalone asio.
2022-06-18 17:21:37 +03: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
Michael Schreckenbauer
5ef370c519
erase websocket::connection from vector in App::remove_websocket()
2022-06-03 07:44:57 +02: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
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
Farook Al-Sammarraie
e7007cfbce
Merge branch 'master' into blueprint-middleware
2022-05-18 13:30:13 +03:00
The-EDev
57c3b43ac0
Fixed small bugs in code
2022-05-16 19:14:51 +03:00
oscar.chen
cdba76739f
fix clang format
2022-05-14 19:35:45 -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
Farook Al-Sammarraie
9f99be55e1
Merge branch 'master' into ws_close
2022-05-14 18:56:39 +03:00
The-EDev
78c7186897
Allowed Crow class to be passed to Websocket connection object
2022-05-14 12:05:06 +03:00
Vladislav
4d4d0094fe
Merge branch 'master' into blueprint-middleware
2022-05-07 23:03:35 +03:00
The-EDev
82e894dc88
formatting
2022-04-27 06:11:49 +03:00
The-EDev
84289dbe71
fix typos
2022-04-27 05:58:53 +03:00
The-EDev
372212a3af
Added method for assigning an SSL certificate chain file
2022-04-27 05:54:33 +03:00
Joel Guittet
c14acad044
app: static can be an absolute path
2022-04-26 06:02:45 +03:00
Vladislav Oleshko
74d94888d1
Generic app constructor
2022-04-13 20:49:22 +03:00
Vladislav
cca8578556
Merge branch 'master' into blueprint-middleware
2022-04-12 10:52:45 +03:00
Vladislav Oleshko
3b9e522523
Blueprint middleware prototype
2022-04-11 16:01:27 +03:00
The-EDev
6a5c18a54f
Fixed issue where Crow wouldn't compile when using CROW_MIDDLEWARES with a pass-by-reference app
2022-04-09 04:45:32 +03:00
The-EDev
a3c1af4b29
updated documentation in mkdocs and doxygen
2022-03-24 01:55:46 +03:00
The-EDev
a0e6e3756b
added set_global_base method to change the default mustache templates
...
directory
2022-03-18 13:55:27 +03:00
The-EDev
69feb9c226
Formatting
2022-03-16 21:15:18 +03:00
The-EDev
c858078b4e
Fixed test porblem
2022-03-16 18:45:31 +03:00
The-EDev
c0062bd2e7
added run_async method
...
also added unit tests for #358
2022-03-10 15:44:39 +03:00
Vladislav Oleshko
4f4e12c91a
Add CROW_MIDDLEWARES macro
2022-02-08 20:11:02 +03:00
Vladislav Oleshko
e60714c0b2
Separate middleware for handlers
2022-02-01 22:49:41 +03:00
The-EDev
7aee13eee9
Changed the way concurrency is used
...
(it actually reflects the thread count properly)
2021-12-23 05:39:39 +03:00
The-EDev
77758e6241
Have concurrency
represent the actual number threads used
2021-12-20 11:04:55 +03:00
The-EDev
14acb50030
fixed server_ name
2021-12-08 19:57:10 +03:00
The-EDev
13768371a9
Fixed problems with signals
2021-12-08 05:21:03 +03:00
Farook Al-Sammarraie
63c8af74f7
Merge branch 'master' into gcc8-workaround
2021-12-04 14:34:58 +03:00
Florian Rupprecht
24d8a72a94
Update include/crow/app.h
...
Co-authored-by: Farook Al-Sammarraie <farook@the-e-dev.com>
2021-12-04 12:32:32 +01:00
The-EDev
94a2f942bc
changed comment style back to the original (doxygen did not work with the new style)
2021-12-03 06:39:23 +03:00