Commit Graph

1538 Commits

Author SHA1 Message Date
Gulliver
90579e94ff splitted crow features into two options 2024-06-03 11:26:15 +02:00
Gulliver
528c3e0cf8 fixed warnings in documentation 2024-05-31 21:34:00 +02:00
Gulliver
8f127179ce added version 1.2 to versions.json 2024-05-29 12:32:56 +02:00
Gulliver
48f16558f4 updated catch2 to v2.13.10 2024-05-29 12:32:17 +02:00
Gulliver
3d6a19037d corrected mike calls fnd deployment for documentation 2024-05-28 13:53:43 +02:00
AndreyTokmakov
1b6a4f4301 Get rid of unnecessary string copies in the the keys() method 2024-05-06 14:20:22 +02:00
Nabzokek Zubkenkanakov
4fbd9b471f
Header files documentation (#804)
* Added documentation of "crow::App", "crow::SimpleApp", "crow"
(namespace), all macros defined in "crow/app.h".
* Added documentation entry for file crow/TinySHA1.hpp, namespace sha1,
class sha1::SHA1, namespace crow and namespace crow::websocket
* Documented crow/app.h and also improved crow/TinySHA1.hpp documentation
* Update app.h
2024-04-24 23:35:13 +02:00
bugdea1er
3e9eb1172a Define GET_IO_SERVICE once 2024-04-19 17:06:13 +02:00
bugdea1er
e3ff9238a4 Add option to use Boost.Asio 2024-04-19 17:06:13 +02:00
ssams
96e049666e add HTTP status 406 2024-04-19 17:05:48 +02:00
ItsAlbertZhang
ad337a8a86 fix: compilation error with libc++ 2024-03-19 16:59:39 +01:00
Tristan CADET
d0f1991e38 fix: parse body when unsupported HTTP/2 upgrade is requested
Crow does not support HTTP/2 at the moment.
According to the RFC https://datatracker.ietf.org/doc/html/rfc7540#section-3.2
"A server that does not support HTTP/2 can respond to the request as though the Upgrade header field were absent"
2024-03-17 15:02:25 +01:00
Gulliver
da570e1cbd added pip install for mike 2024-03-12 21:52:15 +01:00
sina-rostami
106aeb0f0d Add indentation to json dump method
Closes #747
2024-03-10 21:41:43 +01:00
Corentin Schreiber
049490c2c9
Add configurable exception handler (#637)
* Added exception_handler()

* Fixed worker crash if exception thrown in catch-all handler
2024-03-10 13:52:13 +01:00
dependabot[bot]
c95e33ac0a Bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-10 13:46:42 +01:00
dependabot[bot]
7e397f7fbf Bump dawidd6/action-download-artifact from 2 to 3
Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 2 to 3.
- [Release notes](https://github.com/dawidd6/action-download-artifact/releases)
- [Commits](https://github.com/dawidd6/action-download-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: dawidd6/action-download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-10 13:46:10 +01:00
dependabot[bot]
0c5a3dcb34 Bump actions/upload-artifact from 3 to 4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-10 13:45:33 +01:00
StefanoPetrilli
db059ce4c4 adds flag to avoid adding blueprints multiple times 2024-03-10 13:11:56 +01:00
StefanoPetrilli
55e604f939 adds a flag to avoid adding static routes multiple times 2024-03-10 13:11:56 +01:00
StefanoPetrilli
8f7e28ef91 adds new tests 2024-03-10 13:11:56 +01:00
StefanoPetrilli
00bd06d6d3 update existing tests 2024-03-10 13:11:56 +01:00
StefanoPetrilli
a62956b61a split the different responsibilities of validate into different functions 2024-03-10 13:11:56 +01:00
gittiver
fda1109e1a Create dependabot.yml 2024-03-10 13:11:19 +01:00
Harri Porten
e68c3d6a8d Fixed some harmless typos. 2024-03-10 13:10:48 +01:00
gittiver
08acd3a5fa Update doxygen-gh-pages.yml, added mike for versioning 2024-03-10 12:07:57 +01:00
bruvey
c47540bb8c Update http_connection.h 2024-03-02 10:19:00 +01:00
bruvey
d3bd942223 Update http_connection.h 2024-03-02 10:19:00 +01:00
James Knight
cb38b9fe4f add spdx license id to compiled header
This commit adjusts the merging script to include a SPDX license
identifier at the start of the single header file. This can help users
of Crow which have environments using license scanning tools to help
manage/monitor used implementation.

Signed-off-by: James Knight <james.d.knight@live.com>
2024-02-23 10:45:30 +01:00
June Han
5ecd04ade2 fix: call after_handlers for legitimate requests without body part 2024-02-21 21:37:51 +01:00
David Petkovsek
1e864a2f32 Handle _CROW_ILL or _CROW_ICD being NOTFOUND
If the variable is NOTFOUND then set it to "". Then at the end after possible list appends. If the variable is not "" then update the target properties.

This gets rid of a warning
2024-02-20 23:22:47 +01:00
witcherofthorns
3f632dd71b small explanations in the example on using CORS middleware in Crow v1.0 2024-02-18 13:54:20 +01:00
Corentin Schreiber
df756fed45
Use const std::string& as argument to route() (#684) 2024-01-29 18:10:20 +01:00
JuneHan
973d5fa1cd
fix: minimize the precision loss when dumping double to string (#712)
* fix: minimize the precision loss when dumping double to string
* abandon one-time macro
* replace hard-coded buffer size, replace `sprintf` with `snprintf`
* replace `DECIMAL_DIG` with `DBL_DECIMAL_DIG`
* Update json.h changed to C++11 DECIMAL_DIGIT
* added cfloat include
* identify float and double as different numeral types, and approach their precisions accordingly

---------

Co-authored-by: June Han <jun_h@pretia.co.jp>
Co-authored-by: gittiver <gulliver@traumkristalle.net>
2024-01-29 15:25:26 +01:00
Gulliver
fb171f5195 package format changed to zip, version set to >1.1.0 (first release) 2024-01-29 15:16:35 +01:00
bruvey
4555ffd0c9
Fix #754 (#755)
* Update http_response.h
2024-01-26 19:38:05 +01:00
gittiver
f4166acc66
prepare release 1.1.0 on master-branch by adding new version to documentation (#742)
prepare documentation by adding new version
updated Doxyfile version to 1.1
2024-01-20 20:26:20 +01:00
keith-dev
a88ec3bf64
Fix clang debug build (Android and FreeBSD) (#740)
* fix build: android/termux/clang-17.0

* Android build links with liblog in places

* Fix clang debug build (Android and FreeBSD)
2024-01-16 20:19:06 +01:00
bruvey
78d1d2bfba fix #626 2024-01-09 20:16:31 +01:00
Gulliver
17034adae5 on all platforms added CROW_FEATURES ssl, compression and needed libs to prerequisites
general tests are now enabled on MSVC, mustachetests disabled due to some strange bug in python script (will be done later)
2024-01-07 16:04:38 +01:00
keith-dev
6aed71e3c4
fix build: android/termux/clang-17.0 (#736)
* fix build: android/termux/clang-17.0

* Android build links with liblog in places
2024-01-04 10:46:21 +01:00
na-trium-144
921ce6f972 fix order of destructor call of io_service 2024-01-01 22:51:05 +01:00
jfm
f3e0846ee5 My mistake. Crow is compiled with c++11 under windows and has a macro for std::min not being defined as std::min(a,b) under c++11, CROW_MIN 2024-01-01 22:40:37 +01:00
jfm
6704b9b3ab Add <algorithm> header-file, it doesn't compile on windows if not included 2024-01-01 22:40:37 +01:00
jfm
195cd6ad00 Fixed a typo. As in other places, use 2^14 here 2024-01-01 22:40:37 +01:00
Felix
ae8643a1b6 Performance fix for non-static streaming data 2024-01-01 22:40:37 +01:00
Wayne Gerard
4f3f5deaaa
Update MacOS setup guide (#691)
1. For M1/M2/etc. devices the homebrew location is slightly different, so note that.

2. For clang, linking to pthreads is slightly different so note that as well.
2023-07-22 23:28:58 +02:00
Farook Al-Sammarraie
c755c4c8e6
Merge pull request #683 from cschreib/const
Add missing const to mustache `render` and `json::wvalue::operator[]`
2023-07-22 10:42:57 +00:00
Corentin Schreiber
42fab729a2 Add missing const to mustache and json::wvalue::operator[] 2023-07-08 13:04:48 +01:00
Farook Al-Sammarraie
af6b7edc22
Merge pull request #670 from robertgodfrey/doc-update-ws
Update websocket example code, minor grammar fixes
2023-06-30 23:35:24 +00:00