Commit Graph

1142 Commits

Author SHA1 Message Date
Farook Al-Sammarraie
2c952c8182
Merge branch 'master' into docs_upgrade 2021-08-14 17:19:09 +03:00
Farook Al-Sammarraie
174381588f
Merge branch 'master' into drone_coveralls 2021-08-14 17:19:03 +03:00
Farook Al-Sammarraie
4157f41575
Merge pull request #200 from himanshu007-creator/patch-1
Update http_request.h
2021-08-14 16:57:07 +03:00
himanshu007-creator
6ebea5ca77 remoteIpAddress 2021-08-14 18:58:23 +05:30
Himanshu
0f2b231448
Update http_request.h
CamelCase changed to snake_case
2021-08-14 18:01:19 +05:30
The-EDev
239e21e3c6 fixed header icon white background 2021-08-14 01:54:10 +03:00
The-EDev
6812d8073a this would theoratically fix the bug in #184, but I'm not 100% sure it will.. 2021-08-13 20:17:48 +03:00
The-EDev
c69342ed69 added missing changes to README and mkdocs.yml 2021-08-13 04:00:28 +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
Lucas David
6ae3025bd6 - Removed useless comments. 2021-08-12 09:31:27 +02:00
Lucas David
1e52b0182d ~ Corrected code as mentionned in review comments. 2021-08-11 22:25:58 +02:00
Lucas David
8f10f92627
Merge branch 'master' into feature-#189 2021-08-11 21:57:54 +02:00
Farook Al-Sammarraie
6661e02158
Merge pull request #196 from lcsdavid/fix-#195
fix issue #195
2021-08-11 17:03:15 +03:00
Lucas David
df41cbec49 ~ Replaced foreach character type unsigned char by auto to resolve issue #195. 2021-08-11 15:43:40 +02:00
Lucas David
235f2b9ef4 + Added (implicit) constructors for json "supported" types.
+ added corresponding tests.
+ Added json-map examples.
2021-08-09 14:32:51 +02:00
Lucas David
762af68306 + Added object constructor and assignment for json::wvalue and unit tests.
+ json::wvalue::wvalue(std::initializer_list<std::pair<std::string const, json::wvalue>>
  + json::wvalue::wvalue(std::[unordered_]map<std::string, json::wvalue> const&)
  + json::wvalue::wvalue(std::[unordered_]map<std::string, json::wvalue>&&)
  + json::wvalue::operator=(std::initializer_list<std::pair<std::string const, json::wvalue>>)
  + json::wvalue::operator=(std::[unordered_]map<std::string, json::wvalue> const&)
  + json::wvalue::operator=(std::[unordered_]map<std::string, json::wvalue>&&)
2021-08-09 14:32:51 +02:00
Farook Al-Sammarraie
a24f15a1b3
Merge pull request #191 from d35ha/patch-1
Replace `HTTPMethod::GET` with `HTTPMethod::Get`
2021-08-07 03:24:48 +03:00
Farook Al-Sammarraie
62af482f7b
Merge branch 'master' into patch-1 2021-08-07 03:24:26 +03:00
Farook Al-Sammarraie
077bf0f5b3
Merge pull request #192 from danielytics/master
Eliminate extern-initializer warning
2021-08-07 03:24:07 +03:00
Dan Kersten
e6b36c3c03 Eliminate extern-initializer warning 2021-08-06 22:28:13 +01:00
Mustafa Mahmoud
d5c1b54918
Replace HTTPMethod::GET with HTTPMethod::Get 2021-08-06 19:01:13 +02:00
Farook Al-Sammarraie
dd7cc7f0d2
Merge pull request #181 from CrowCpp/blueprints
Flask style Blueprint support
2021-08-05 20:11:15 +03:00
Farook Al-Sammarraie
8039b2eab9
Merge branch 'master' into blueprints 2021-08-05 19:54:02 +03:00
The-EDev
0588471d6d fixed extern constexpr problem 2021-08-05 19:53:52 +03:00
Farook Al-Sammarraie
2b1a071e49
Merge pull request #186 from CrowCpp/version_fix
Fixed multiple files issue
2021-08-05 19:48:18 +03:00
The-EDev
9418c39a92 fixed problem where using multiple files caused an error because you can't have extern constexpr 2021-08-05 17:01:03 +03:00
The-EDev
1474fbec33 used constant 0xffff in more places, used .empty(), and split the if statement into a method. 2021-08-04 23:58:38 +03:00
The-EDev
2def62bd4a removed unnecessary code / added constexpr for max bp id 2021-08-03 12:46:41 +03:00
Farook Al-Sammarraie
2d65f71de8
Merge branch 'master' into blueprints 2021-07-30 13:15:44 +03:00
The-EDev
addcce9e93 small fixes, optimizations, and documentation 2021-07-30 13:09:01 +03:00
Farook Al-Sammarraie
b60af547e7
Merge pull request #174 from lcsdavid/unresolved-conversion-warning-fix
unresolved conversion warning fix
2021-07-28 22:46:20 +03:00
The-EDev
e713ad54cb added unit test, moved macros to app.h, and fixed bug where "bp_prefix2" would be considered a child of "bp_prefix" even if it's not 2021-07-28 22:31:08 +03:00
Farook Al-Sammarraie
730077bc4f
Merge branch 'master' into unresolved-conversion-warning-fix 2021-07-28 02:38:28 +03:00
The-EDev
faebef73d2 also updated index.md and more links 2021-07-28 02:03:51 +03:00
Farook Al-Sammarraie
933b8a1890
updated data related to renamed repository 2021-07-27 18:48:49 +03:00
Lucas David
1bb5e0ac63 + auto to_read = static_cast<std::uint64_t>(buffer_.size());
~ if (remaining_length_ < to_read)
~   to_read = remaining_length_;
+ adaptor_.socket().async_read_some(boost::asio::buffer(buffer_, static_cast<std::size_t>(to_read))
- size_t to_read = buffer_.size();
~ if (remaining_length_ < to_read)
~   to_read = remaining_length_;
- adaptor_.socket().async_read_some( boost::asio::buffer(buffer_, to_read)

~ Changed 'to_read' from [std::size_t] to [std::uint64_t],
  hence when 'remaining_length_' [std::uint64_t] is assigned in 'to_read' no data is lossed.
  When boost::asio::buffer is created 'to_read' is casted back to [std::size_t] explicitly truncating data.
  It seems to be the correct behavior to choose fixed 'network side' types.
2021-07-27 17:04:54 +02:00
Lucas David
6aa5dba579 + buf[1] += static_cast<char>(size);
- buf[1] += size;

~ Warning was triggered by 'size' being std::size_t and lossing data by implicit casting to a narrower type.
  This behavior seems correct, then we can explicit cast it.
2021-07-27 15:39:51 +02:00
The-EDev
36c8355b59 Merge branch 'master' 2021-07-27 10:54:47 +03:00
The-EDev
06c4829ca7 implemented all blueprint features 2021-07-27 10:52:49 +03:00
The-EDev
dad25b0dab use github as readme logo source (doesn't require CI to show logo changes) 2021-07-26 14:04:32 +03:00
The-EDev
6878897f0a Added logo that works in light and dark mode for github readme 2021-07-26 14:02:31 +03:00
Farook Al-Sammarraie
cbf1b66481
Create FUNDING.yml 2021-07-26 01:31:50 +03:00
Farook Al-Sammarraie
d54d0bd7ae
Merge pull request #172 from CrowCpp/newlogo
Update Logo
2021-07-24 09:37:44 +03:00
The-EDev
5c637380a0 fixed typo in disclaimer 2021-07-23 12:00:43 +03:00
The-EDev
337f1a45f5 Updated Logo and made logo copyright clear 2021-07-23 01:17:36 +03:00
The-EDev
c5d00f784b Added disclaimer to clear any potential misconceptions between this project and the original 2021-07-22 01:10:57 +03:00
The-EDev
27fe952a0c Merge branch 'master' 2021-07-20 11:00:09 +03:00
Farook Al-Sammarraie
b18fbb18f0
Merge pull request #166 from CrowCpp/better_trie
Re-implemented the Trie crow uses to match rules with URLs
2021-07-19 23:43:52 +03:00
The-EDev
6d6fbe2385 removed unnecessary boolean 2021-07-19 00:01:20 +03:00
Farook Al-Sammarraie
603dbe3850
Merge branch 'master' into better_trie 2021-07-11 17:39:24 +03:00