Rob Godfrey
849e2014dc
Update websockets.md
2023-05-28 22:25:31 -10:00
Rob Godfrey
3951788918
Fix capitalization and other minor errors
2023-05-28 22:07:08 -10:00
Rob Godfrey
809339089a
Add note about attempting to compile with C++03
2023-05-28 19:09:24 -10:00
topazus
0f67b199cb
use GNUInstallDirs for CMake installation
2023-05-23 15:38:19 +08:00
Farook Al-Sammarraie
1d683b1e9a
Merge pull request #633 from anagno/fix-memory-leak
...
Fix memory leaks caused from the http_connection
2023-05-22 21:23:49 +03:00
Vasileios Anagnostopoulos
d5e0523602
Fix memory leaks caused from the http_connection
...
This memory leak was caused from the fact that we were creating a raw
pointers in the do_accept method of the http_server. The initial
connection was never released, but all subsequent connection
were released without problem. So this commit introduces shared_ptr
to manage all the connection and release the memory when the
connection is not needed any more.
Signed-off-by: Vasileios Anagnostopoulos <anagnwstopoulos@hotmail.com>
2023-05-14 13:38:42 +02:00
Farook Al-Sammarraie
dfc57edc23
Merge pull request #634 from marcrobm/patch-1
...
Fixed compilation under android ndk, operator "=" was undefined
2023-05-14 14:08:11 +03:00
Marc Robert
4eb78bb366
Fixed compilation under android ndk, operator = was undefined
2023-05-12 00:49:57 +02:00
Stefano Petrilli
3b81e16614
Validate if the CROW_ROUTE starts with a '/' ( #559 ) ( #597 )
2023-05-05 16:00:18 +02:00
gittiver
f6cfa84d42
add action for build and test ( #586 )
2023-05-04 21:15:20 +02:00
Gabriel Schlozer
215834f8f9
Added a static method which create an empty json value crow::json::wvalue (outputs "{}" instead of a "null" string) ( #602 )
2023-03-30 14:09:36 +02:00
Ildar Kashaev
eef1abe415
Fix loghandler memleak ( #609 )
2023-03-30 14:03:02 +02:00
Alex Kong
112139665b
fix typos in app.md ( #600 )
2023-03-10 14:26:49 +01:00
Igor Mróz
6b3ce3245f
Merge pull request #595 from gfeyer/master
...
Fix typo in unit test
2023-03-10 14:24:45 +01:00
Gabriel Feyer
ee0d2f9dd0
Fix typo in unit test
2023-02-23 16:10:30 -05:00
Igor Mróz
e041d35d99
Merge pull request #592 from xandross389/get-some-server-running-params
...
Add functions that return info about server's threads number and bind address.
2023-02-11 20:18:16 +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
Igor Mróz
4eea4eb4c1
Merge pull request #588 from queenstdev/master
...
fix #587 Render true and false Mustache tags
2023-02-03 21:34:54 +01:00
queenstdev
b493cd646e
fix #587 Render true and false Mustache tags
2023-02-03 21:34:38 +01:00
Igor Mróz
5927b958de
Merge pull request #590 from xia-stan/master
...
CrowCpp/Crow#585 : Resolves issue with blueprint assignments.
2023-02-03 21:33:29 +01:00
S. V. Paulauskas
52a3caa09c
CrowCpp/Crow#585 : Resolves issue with blueprint assignments.
...
Adds static_dir_, templates_dir_, blueprints_, and mw_indices_ to the assignment.
This ensures that the Blueprint is assigned all the information.
2023-02-01 08:41:12 -05:00
Igor Mróz
a92aee49b9
Merge pull request #580 from gittiver/fix_msc_compatible_snprintf_warning
...
fix warning on non MS systems for using sprintf instead of snprintf
2023-01-09 21:29:44 +01:00
Gulliver
a77d7bd84f
fix warning on non MS systems for using sprintf instead of snprintf
2022-12-25 18:24:51 +01:00
Igor Mróz
209f5ec67d
Merge pull request #578 from puffetto/master
...
Apply workaround for Apple to FreeBSD aswell
2022-12-21 23:03:29 +01:00
Andrea Cocito
c8e376cfa5
Apply workaround for Apple to FreeBSD aswell
...
Maybe these should be triggered by __clang__?
2022-12-12 21:06:42 +01:00
Farook Al-Sammarraie
cae4d3e498
Merge pull request #556 from soehrl/feature/fix-websocket-route-macro
...
Adapt CROW_WEBSOCKET_ROUTE to accept app reference
2022-12-11 14:35:15 +03:00
Farook Al-Sammarraie
c1c707371c
Merge branch 'master' into feature/fix-websocket-route-macro
2022-12-10 13:35:12 +03:00
Igor Mróz
3634bb7689
Merge pull request #568 from leksiso/master
...
fix optimizeNode to prevent a crash on MSVC
2022-12-02 12:20:00 +01:00
Aleksi Sohlman
39a3472374
fix optimizeNode to prevent a crash on MSVC
2022-11-30 17:44:26 +02:00
Igor Mróz
4eda8bdcd0
Merge pull request #566 from hlmodi/fix-381
...
Fix 381
2022-11-30 10:23:03 +01:00
Lionel Modi
75d6f22142
Fix 381
2022-11-30 09:48:43 +01:00
Igor Mróz
fc87b47ec8
Merge pull request #565 from BoleynSu/patch-1
...
Fix use-after-move
2022-11-30 09:44:39 +01:00
Boleyn Su
73c543a007
Fix use-after-move
2022-11-30 09:18:21 +01:00
Igor Mróz
dedfd639c3
Merge pull request #561 from okaestne/clang-warnings
...
Fix warnings generated by clang++
2022-11-30 09:13:37 +01:00
Simon Oehrl
d0929ae66d
Fix formatting
2022-11-23 13:37:34 +01:00
Simon Oehrl
8b34504741
Use const string reference instead of string_view
2022-11-23 13:37:34 +01:00
Simon Oehrl
cec165e29a
Adapt CROW_WEBSOCKET_ROUTE to accept app reference
2022-11-23 13:37:34 +01:00
okaestne
5e19641d61
fix friend declarations
2022-11-08 10:32:37 +01:00
okaestne
9e7015281e
http_response: don't try to move temporary
2022-11-08 10:32:37 +01:00
okaestne
2970f81001
app: remove unused lambda caption
2022-11-08 10:32:37 +01:00
Igor Mróz
84ec7832b0
Merge pull request #560 from okaestne/fix-memleaks
...
Fix some valgrind reported issues
2022-11-08 09:05:05 +01:00
okaestne
5543276c4e
http_connection: initialize task_id_
2022-11-05 23:08:54 +01:00
okaestne
323a7cb48f
routing: use object references instead of raw pointers
...
this fixes some memory leaks.
also remove unused `get_size` method.
2022-11-05 23:08:49 +01:00
Farook Al-Sammarraie
71bc4445f9
Merge pull request #553 from okaestne/debian-pkg
...
feat(cmake): improved debian packaging
2022-11-04 18:58:45 +03:00
okaestne
59a0e82fed
feat(cmake): improved debian packaging
...
Improve Debian package generated by cmake's CPack:
* set architecture to `all`, making the .deb installable
and thus Crow usable on other system archtectures like arm
* add `libasio-dev` as dependency (fixes #420 )
* set section to `libdevel`
* disabled shlibdeps (not needed here)
2022-11-04 01:29:48 +03:00
The-EDev
3994bf293c
docs redirect potential fix
2022-11-03 11:42:36 +03:00
The-EDev
5d50db7773
replaced github-square with square-github
2022-11-03 11:27:30 +03:00
Igor Mróz
e3ba10df18
Merge pull request #550 from lag945/examples_patch_20221021
...
Change one of example's routes to handle POST instead of GET.
2022-10-29 23:21:47 +02:00
Laguna Du
1681ff2d2d
Fix code formatting again.
2022-10-27 16:05:51 +08:00
Laguna Du
628361b6f7
Fix code formatting.
2022-10-27 15:55:36 +08:00