Commit Graph

82 Commits

Author SHA1 Message Date
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
The-EDev
dc46f2848a added 405 error for when a rule is found but the method is incorrect 2020-10-15 00:09:17 +03:00
The-EDev
5382ce7b58 Update http_connection.h 2020-10-13 00:53:27 +03:00
The-EDev
964e8f857b removed sendfile function due to trouble with large files (the sendfile command would just hang until timeout without fully sending the file).
Added 404 and fixed some issues with windows error message
sendfile still incompatible with windows due to the stat function
also changed the buffer size to 16KB
2020-10-11 19:00:24 +03:00
The-EDev
7ba3c9161f fixed type mismatch issue when using SSL 2020-10-09 16:01:24 +03:00
Farook
3f38caa0d0 stole @digitalist's sendFile code and made it work with newer boost 2020-10-04 15:05:26 +03:00
Igor Mróz
ef7fa91631 #146 Added field with remote IP address. 2018-09-28 21:16:36 +02:00
Simon Rasmussen
f88657a22a Added 413 and 429 status codes 2017-10-20 15:20:18 +02:00
Jaeseung Ha
112e86b906 Merge pull request #194 from vadz/atomic-conn-count
Use atomic type for connection count shared between threads
2017-09-17 18:30:24 +09:00
Jamie Bullock
679fe4a8ac Add support for HTTP 422 status code
See: https://tools.ietf.org/html/rfc4918#section-11.2
2017-09-04 16:40:40 +01:00
Jamie Bullock
9a1e4aefdd Revert "Add support for HTTP 422 status code"
This reverts commit 6e4e66ad12.
2017-09-04 16:38:51 +01:00
Jamie Bullock
6e4e66ad12 Add support for HTTP 422 status code
See: https://tools.ietf.org/html/rfc4918#section-11.2
2017-09-04 16:08:02 +01:00
Vadim Zeitlin
bd9a9ace4a Use atomic type for connection count shared between threads
Even if this variable is only used in debug mode, it's still bad to have data
races on it, as it was the case (and reported by thread sanitizer) before.
2016-11-15 16:44:45 +01:00
ipknHama
3081e4e1a8 Cleanup include folder into crow subfolder
- only crow.h is exposed now
2016-09-21 23:11:06 +09:00