Commit Graph

62 Commits

Author SHA1 Message Date
The-EDev
6f832f82fa
added message string to websocket error handler 2022-06-21 02:23:51 +03:00
Luca Schlecker
f3d00bbecf replace boost::asio with standalone asio. 2022-06-18 17:21:37 +03:00
Luca Schlecker
78f764791e remove 'using namespace boost' declarations. 2022-06-18 17:21:37 +03:00
Farook Al-Sammarraie
8c5deeedd3
fixed dead link in json guide 2022-06-17 18:39:19 +03:00
The-EDev
16358b60ec
documented changes 2022-05-28 09:53:48 +03:00
Farook Al-Sammarraie
a6bf90fa8b
Merge branch 'master' into blueprint-middleware 2022-05-23 09:43:17 +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
Farook Al-Sammarraie
3e6c097733
Merge branch 'master' into #421-Websockets-should-support-a-maximum-payload 2022-05-18 20:04:38 +03:00
The-EDev
564b070d5f Made test port static and replaced REQUIRE with CHECK and if
Using port 0 seems to cause the test to be blocked
Also added methods and status codes to Crow's documentation
2022-05-18 15:57:46 +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
Farook Al-Sammarraie
e7007cfbce
Merge branch 'master' into blueprint-middleware 2022-05-18 13:30:13 +03:00
The-EDev
0f6bfb04ee
added documentation and unit test 2022-05-16 19:15:34 +03:00
The-EDev
21cdd5cac2
improved "introduced in" statements 2022-05-13 00:49:52 +03:00
Vladislav Oleshko
740111a400 Update docs formatting. Small changes 2022-05-07 23:29:55 +03:00
Vladislav
4d4d0094fe
Merge branch 'master' into blueprint-middleware 2022-05-07 23:03:35 +03:00
Vladislav Oleshko
84effa5840 Update docs 2022-05-07 12:09:22 +03:00
Vladislav Oleshko
078227a40d Unify docs page for additional middleware 2022-05-07 12:09:22 +03:00
Vladislav Oleshko
b13c8c0db6 Update docs 2022-04-13 12:15:30 +03:00
The-EDev
ca78b98f55
documented CROW_FEATURES 2022-04-07 15:42:47 +03:00
Bryce Schober
04405210c1
Fix indentation & numbering in middleware 2022-03-30 13:04:25 -07:00
The-EDev
f52ba6120e
updated documentation version and license year 2022-03-30 15:41:38 +03:00
The-EDev
a3c1af4b29
updated documentation in mkdocs and doxygen 2022-03-24 01:55:46 +03:00
The-EDev
8cd9dae961
Edited documentation 2022-02-18 04:28:35 +03:00
Vladislav Oleshko
4f4e12c91a Add CROW_MIDDLEWARES macro 2022-02-08 20:11:02 +03:00
Vladislav Oleshko
39e5eb427d Update docs 2022-02-01 22:50:01 +03:00
Thomas Neumann
15085a9f95 avoid memory allocation in base64decode
Every single call to base64decode allocates a mapping table for all
base64 characters. This is quite wasteful, as the map is in fact static.
We could use a static variable here, but that would have unpleasant consequences
if we ever encounter input with non-valid base64 characters (which
implicitly modifies the map).

The number of character ranges for base64 is quite low (3, plus 4 exceptions),
thus we can simply check that explicitly in code instead of using a dynamic hash table.
2022-01-24 07:24:34 +01:00
Farook Al-Sammarraie
790e34cea8
Merge branch 'master' into mustache_lambdas 2021-12-17 09:08:24 +03:00
The-EDev
228e61d150
Added mustache lambda expansion 2021-12-10 05:17:25 +03:00
Meet Gor
615cb8a5d7
changes after review 2021-12-08 13:01:08 +05:30
Mr-Destructive
943bc82819 Fixed typos in docs/guides 2021-12-08 10:39:55 +05:30
Farook Al-Sammarraie
b64fc0e34c
typo fix
Co-authored-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-12-04 04:16:50 +03:00
The-EDev
b309bda160
Updated documentation:
added auth guide
updated macos setup
2021-12-03 06:38:14 +03:00
Luca Schlecker
dc317ced93 logger: don't append std::endl to the message.
ILogHandler instances should take care of that.

Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-29 23:59:41 +01:00
The-EDev
d1b057d3b8
Added documentation for creating a custom logger 2021-11-27 17:37:30 +03:00
The-EDev
65f8eb9e44
added macro to enforce ws spec and added 16/64 bit payload length unit tests for ws 2021-11-22 17:39:48 +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
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
72e33c743e
Merge branch 'master' into revamped_setup 2021-10-02 17:29:07 +03:00
The-EDev
a031fb6c8e added status codes enum 2021-09-30 20:38:23 +03:00
The-EDev
db18647cb3 Added updated setup instructions (kept old instructions as "legacy") 2021-09-30 01:43:50 +03:00
The-EDev
f5338260bb several changes:
added json list in a similar fashion to json object
renamed object_type to object
updated readme, index.html, and json.md to include objects and lists
updated examples to be slightly cleaner and include lists
replaced instances of json object (std::map and such) with the short version (object)
accurate floating point number dumping (`6.0` instead of `6`) while taking 1/30th of the time (29 microseconds saved)
added json list testing
snuck in utf-8 middleware warning fix
snuck in twitter card style for crowcpp.org site (makes social media cards look way better with a large image)
2021-08-20 03:57:21 +03:00
The-EDev
8617aaf6a9 Made several changes to docs
- Added landing page
- Changed theme completely
- Added donate button
- Added social media picture and description (OpenGraph)
- Added version tag to any feature introduced after v0.1
2021-08-13 03:49:34 +03:00
The-EDev
addcce9e93 small fixes, optimizations, and documentation 2021-07-30 13:09:01 +03:00
The-EDev
189e0709b1 explained CROW_JSON_NO_ERROR_CHECK 2021-06-28 13:01:12 +03:00
The-EDev
2dde0ac950 updated documentation to fix a few mistakes, clear up a few points, and added compression guide 2021-06-03 17:12:48 +03:00
The-EDev
f39b9ddce7 Quality of life improvements
Added pop() method to query_string, same as get(), but removes the item from the querystring
Added std::string() operator to json::rvalue (allows std::string(json["abc"]), which returns any value that isn't a container to string)
Added lo() method to json::rvalue, returns a vector of json::rvalue containing whatever a json object or list has (difference being a list has no keys)
Added keys() method to json::rvalue, returns a vector of std::string containing the keys of a json object
Made json::wvalue use either std::map or std::unordered_map instead of just std::unordered_map
Added copy constructor to json::wvalue
Added size() method to json::wvalue, returns 1 or the size of the json list.
Added constructor to create json::wvalue from std::vector
Added keys() method to query_string
Documented query_string and improved json doc
Made tests and examples for all the additions
2021-05-12 15:45:55 +03:00
Farook Al-Sammarraie
4aae614297
Merge branch 'master' into catch_all 2021-04-12 10:49:29 +03:00
The-EDev
f779a0f8a4 changed catchall to fit with the rest of crow
the macro is similar to CROW_ROUTE, added example to cmake, added unit test, and documentation
2021-04-12 08:25:09 +03:00
The-EDev
1eeda1a22b mentioned crow_main in docs and edited mime_types generating script to include it. 2021-04-04 07:47:14 +03:00