Luca Schlecker
0593f42522
http_response: fix move assign operator not moving file_info.
...
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-06-28 18:08:57 +02:00
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
b837877715
updated head and no_length variable names
2021-04-03 13:48:36 +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
rittelle
3b151d569d
Properly clear responses
...
Closes #104 .
2021-02-12 13:21:59 +01:00
The-EDev
747ad6db72
Merge branch 'master'
2021-01-21 21:37:55 +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
3234c924cf
disable compression on static files
2021-01-21 06:46:54 +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
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
9db47120e7
added documentation
...
also removed extra header meant for testing
2020-12-19 14:30:20 +03:00
The-EDev
ed2a7ae0e0
Added returnables class and applied to multipart
...
did not apply to JSON because it caused a linker error
also changed the version of boost required in CMAKE
2020-12-18 12:28:37 +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
Eero Pajarre
71bd6c8c2b
removed another if not defined(_WIN32)
2020-11-13 07:42:02 +02: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
The-EDev
fc0c6d9eae
removed reserve code
2020-10-31 03:09:32 +03:00
The-EDev
92d7f2e3c4
optimized the body streaming code
...
has the side effect of removing some messups I made
2020-10-27 16:21:52 +03:00
The-EDev
0a21fcbba0
split streaming methods to allow streaming strings as well as streams
2020-10-27 02:36:02 +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
99994d90b5
Edited lambda for sending error
2020-10-12 14:07:34 +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
4992261f0e
fixed mime type issue, added default plaintext option
2020-10-11 00:54:20 +03:00
The-EDev
8f9486e3c8
added initial chunk sending code (for SSL only)
2020-10-11 00:29:40 +03:00
The-EDev
7ba3c9161f
fixed type mismatch issue when using SSL
2020-10-09 16:01:24 +03:00
Farook
7e812ea58a
removed content-type related comments
2020-10-04 19:14:13 +03:00
Farook
dd79b31274
added automatic Content-Type header based on file extension
2020-10-04 19:11:18 +03:00
Farook
3f38caa0d0
stole @digitalist's sendFile code and made it work with newer boost
2020-10-04 15:05:26 +03:00
yorickdewid
e40605da59
HTTP response redirect
...
- Log address
2016-10-03 15:32:16 +02:00
ipknHama
3081e4e1a8
Cleanup include folder into crow subfolder
...
- only crow.h is exposed now
2016-09-21 23:11:06 +09:00