Maxime BELUGUET
|
31143b9f06
|
Fix atomic queue_length initialisation
|
2021-11-30 19:54:37 +01:00 |
|
Maxime BELUGUET
|
2607bf5791
|
Change += to ++, add queue length decrementation on error
|
2021-11-30 19:22:07 +01:00 |
|
Maxime BELUGUET
|
f8af9eb187
|
Formatting
|
2021-11-30 18:14:16 +01:00 |
|
Maxime BELUGUET
|
0f6043f60d
|
Add basic load balancing #258 #182
|
2021-11-29 16:56:12 +01:00 |
|
Luca Schlecker
|
7e4f1494d2
|
improved lambda bracing by inlining only empty lambdas.
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
|
2021-11-27 19:22:35 +01:00 |
|
The-EDev
|
03e59aa446
|
improved bracing rules, commented out clang-format 14 rule
|
2021-11-27 15:28:50 +03:00 |
|
The-EDev
|
7f4b7c8ff9
|
created new rules, used bot to enforce rules in PRs
|
2021-11-25 14:45:38 +03:00 |
|
Luca Schlecker
|
912bf47b6f
|
fix faulty https redirection.
Crow would redirect to https if ssl is enabled, even if no ssl is being actively used.
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
|
2021-11-22 02:45:08 +01:00 |
|
Luca Schlecker
|
6458184e8f
|
task_timer: rename set_timeout to schedule .
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
|
2021-11-20 17:03:58 +01:00 |
|
Luca Schlecker
|
de92d28f29
|
replace dumb_timer_queue with new task_timer .
fixes #264, lays ground for #273 and #257.
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
|
2021-11-19 18:55:10 +01:00 |
|
The-EDev
|
20c7720f72
|
Made crow's streaming threshold changeable through app.stream_threshold (I also added a getter for it to avoid sending it to the server then the connection)
|
2021-10-12 15:35:08 +03:00 |
|
Farook Al-Sammarraie
|
72e33c743e
|
Merge branch 'master' into revamped_setup
|
2021-10-02 17:29:07 +03:00 |
|
The-EDev
|
ce1cc7b2b2
|
replaced http_connection.h integers with enum values
|
2021-10-02 17:11:19 +03:00 |
|
Farook Al-Sammarraie
|
de9e860771
|
Merge branch 'master' into revamped_setup
|
2021-10-01 11:34:55 +03:00 |
|
The-EDev
|
a031fb6c8e
|
added status codes enum
|
2021-09-30 20:38:23 +03:00 |
|
Zhavok
|
1081d25a0f
|
some status codes removed
|
2021-09-30 11:46:00 +02:00 |
|
Zhavok
|
db6ab441b4
|
missing http status codes added
|
2021-09-29 19:30:59 +02:00 |
|
The-EDev
|
b3638a3b83
|
Merge remote-tracking branch 'refs/remotes/origin/revamped_setup'
Conflicts:
.drone.yml
|
2021-09-27 19:04:01 +03:00 |
|
Luca Schlecker
|
3c9e5d1e1d
|
enable compression after first use of 'use_compression'.
|
2021-08-31 18:14:05 +02:00 |
|
Farook Al-Sammarraie
|
84878ae4b1
|
Merge branch 'master' into ssl_test
|
2021-08-18 13:13:29 +03:00 |
|
himanshu007-creator
|
6ebea5ca77
|
remoteIpAddress
|
2021-08-14 18:58:23 +05:30 |
|
The-EDev
|
ca31b85156
|
added CROW_ENABLE_COMPRESSION macro to enable zlib compression
This makes zlib dependency (which is quite problematic) optional
|
2021-06-03 17:12:20 +03:00 |
|
The-EDev
|
798f190fc8
|
added initial ssl testing
|
2021-04-17 02:33:35 +03:00 |
|
The-EDev
|
738abdbd96
|
fixed issue where response is logged twice
|
2021-04-12 20:11:03 +03:00 |
|
The-EDev
|
b837877715
|
updated head and no_length variable names
|
2021-04-03 13:48:36 +03:00 |
|
Farook Al-Sammarraie
|
1654acbfd0
|
Merge branch 'master' into HEAD_and_OPTIONS
|
2021-04-03 06:31:45 +03:00 |
|
The-EDev
|
33e8631676
|
Added Content-Length header back to HEAD response.
The reason for removing it was an issue with Curl rather than how HEAD should be handled.
|
2021-04-03 06:21:18 +03:00 |
|
The-EDev
|
ec566f87ef
|
added tests and fixed small issues
moved body handling to Response.end() and fixed a bug where a 404 was not returned on a route that doesn't exist
|
2021-04-03 06:00:23 +03:00 |
|
The-EDev
|
06226b86a7
|
implemented proper HEAD handling, implemented OPTIONS handling
|
2021-04-03 05:33:40 +03:00 |
|
The-EDev
|
6f5514743a
|
added automatic HEAD method handling
|
2021-03-13 13:51:27 +03:00 |
|
Sfinktah Bungholio
|
6597feb3a8
|
converted all (int) to static_cast
|
2021-02-21 11:14:30 +11:00 |
|
The-EDev
|
747ad6db72
|
Merge branch 'master'
|
2021-01-21 21:37:55 +03:00 |
|
The-EDev
|
3aaef5e0fd
|
fixed merge errors
|
2021-01-21 21:36:41 +03:00 |
|
The-EDev
|
78ee97124b
|
Merge branch 'master'
Conflicts:
CMakeLists.txt
examples/CMakeLists.txt
include/crow/http_connection.h
tests/CMakeLists.txt
|
2021-01-21 06:56:02 +03:00 |
|
The-EDev
|
cf217d3c1f
|
Merge branch 'master'
|
2021-01-05 17:51:57 +03:00 |
|
The-EDev
|
33f1206571
|
made json a returnable type and removed json specific code
|
2021-01-05 17:49:10 +03:00 |
|
The-EDev
|
24fc57d453
|
location != "" -> !location.empty()
|
2021-01-03 17:56:19 +03:00 |
|
The-EDev
|
09d0f4ccdd
|
Added HTTP compression using gzip or deflate (disabled by default, requires calling method)
|
2021-01-02 22:12:04 +03:00 |
|
The-EDev
|
97dea47eb0
|
Changed the behaviour of redirect function to redirect to a route if no http:// is available
Also added `redirect_perm`, `moved`, and `moved_perm` functions with their status codes.
And corrected the description of the `raw_url` member.
|
2020-12-26 19:54:41 +03:00 |
|
The-EDev
|
3d202d2919
|
allow returning all json data types, not just json objects
|
2020-11-26 04:08:24 +03:00 |
|
The-EDev
|
2422f55855
|
documented as much as possible relating to the API reference
|
2020-11-19 01:13:57 +03:00 |
|
The-EDev
|
454810c165
|
Added reference docs for dumb_timer_queue, http_request, http_response, and socket_adaptors
|
2020-11-14 05:28:07 +03:00 |
|
Farook Al-Sammarraie
|
f9dec6997e
|
Merge branch 'master' into static_file_win32
|
2020-11-13 15:24:44 +03:00 |
|
Eero Pajarre
|
16cae0af4a
|
Activate static_file support on WIN32
static_file support seems to work, at least with
Microsoft Visual Studio 2017 and 2109 / C++17.
Without it the compilation fails, so activating it.
|
2020-11-12 15:38:37 +02:00 |
|
Eero Pajarre
|
5fe3a45793
|
Replaced uint with unsigned
uint is not a default type in C++.
Replaced it with unsigned, which should be large enough
|
2020-11-12 15:11:22 +02:00 |
|
Farook Al-Sammarraie
|
c66afeb4d3
|
Merge branch 'master' into stream_body
|
2020-10-21 23:29:18 +03:00 |
|
The-EDev
|
9728d652df
|
changed megabyte name to res_stream_threshold_
|
2020-10-21 20:54:28 +03:00 |
|
The-EDev
|
bcd135fad6
|
set connection to stream any respose body larger than 1MB
using the same system for static file serving
|
2020-10-21 04:02:09 +03:00 |
|
The-EDev
|
63ea212e1a
|
shutting down socket before closing the connection
|
2020-10-20 11:48:35 +03:00 |
|
Igor Mróz
|
b6f8e805ff
|
Fix friend declaration.
|
2020-10-19 18:55:40 +02:00 |
|