The-EDev
c4d191a7b0
added static/ prefix to path
2020-11-10 03:54:30 +03:00
The-EDev
72aeabd5e4
added default "/static/<path>" route for any static files
...
can be disabled via CROW_DISABLE_STATIC_DIR def
2020-11-10 03:47:30 +03:00
The-EDev
4a42a6fbae
bump server version to 0.2
...
also fixed a chmod issue in travis
2020-10-31 23:56:50 +03:00
Farook Al-Sammarraie
5b996e4686
Merge pull request #33 from mrozigor/stream-fixes
...
Stream fixes
2020-10-31 21:10:41 +03:00
The-EDev
fc0c6d9eae
removed reserve code
2020-10-31 03:09:32 +03:00
Igor Mróz
90b46528d4
#6 Fix mustache implementation after specification update.
2020-10-30 20:29:41 +01:00
Farook Al-Sammarraie
81386da246
Merge branch 'master' into stream-fixes
2020-10-27 16:28:01 +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
c3220a73bc
documented most of app.h
2020-10-22 04:13:57 +03:00
Farook Al-Sammarraie
bbada35cb1
Merge branch 'master' into configure-timeout
2020-10-21 23:52:37 +03:00
Farook Al-Sammarraie
c66afeb4d3
Merge branch 'master' into stream_body
2020-10-21 23:29:18 +03:00
Farook Al-Sammarraie
1e05fa5447
Merge branch 'master' into configure-timeout
2020-10-21 22:51:20 +03:00
Farook Al-Sammarraie
c4dba56f32
Merge branch 'master' into stream_body
2020-10-21 22:51:16 +03:00
Farook Al-Sammarraie
179114b3c6
Merge branch 'master' into connection-improvements
2020-10-21 22:51:11 +03:00
The-EDev
e1650750ce
fixed typo
2020-10-21 20:56:12 +03:00
The-EDev
9728d652df
changed megabyte name to res_stream_threshold_
2020-10-21 20:54:28 +03:00
Farook Al-Sammarraie
019ead45e2
Merge branch 'master' into stream_body
2020-10-21 19:50:01 +03:00
Farook Al-Sammarraie
70887d88c3
Merge branch 'master' into travis-changes
2020-10-21 19:42:34 +03:00
Igor Mróz
548510ad80
Merge branch 'master' into connection-improvements
2020-10-21 18:41:05 +02:00
Farook Al-Sammarraie
acd94fca37
Merge branch 'master' into configure-timeout
2020-10-21 19:39:51 +03:00
The-EDev
1b284e21b1
removed unneccessary class reference
2020-10-21 16:31:06 +03:00
The-EDev
d04947980d
Added method to set timeout (default is 5 seconds)
2020-10-21 16:06:49 +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
cdd613935d
removed char <=0 comparison
...
(not sure why it invoked an error in ARM now)
2020-10-20 12:17:00 +03:00
The-EDev
63ea212e1a
shutting down socket before closing the connection
2020-10-20 11:48:35 +03:00
The-EDev
745f6c95c6
changed verification option to verify once ( #17 )
2020-10-20 11:43:43 +03:00
Farook Al-Sammarraie
65b12e88e8
Merge branch 'master' into multipart
2020-10-20 10:10:52 +03:00
Igor Mróz
942fcd1bc9
Check if number of threads is valid.
2020-10-19 19:26:46 +02:00
Igor Mróz
b6f8e805ff
Fix friend declaration.
2020-10-19 18:55:40 +02:00
Igor Mróz
603ceb377a
Remove debug statements.
2020-10-19 18:32:16 +02:00
Igor Mróz
e1085de237
README cleanup. Tests cleanup.
2020-10-19 18:32:16 +02:00
Igor Mróz
7b8b72bd11
Remove conanfile. Update mustache specification jsons. Remove compilation warnings. Update CMake version. Change test framework to Catch2.
2020-10-19 18:32:16 +02:00
The-EDev
cb0915901f
cleaned up code
2020-10-18 03:04:18 +03:00
The-EDev
e06942dfc4
added test
...
funny enough, the test pointed out a mistake i made in the code XD
2020-10-18 02:36:39 +03:00
The-EDev
d20bc7051a
removed include for mime type header
2020-10-18 01:56:07 +03:00
The-EDev
b49d52e78b
Added basic multipart data structure
...
Including methods to generate multipart message from request
2020-10-18 01:34:58 +03:00
The-EDev
823d061c62
Removed unnecessary variables
2020-10-15 13:59:15 +03:00
The-EDev
4e5d43696b
code formatting
...
Removed extra spaces
2020-10-15 00:09:35 +03: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
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
The-EDev
744baf8c0a
Refactored mime type generating script
...
using with instead of open and close
removed while loop
using one line to write the new file
using unordered map instead of ordered map
added indentation to the generated file
2020-10-07 12:17:37 +03:00
Farook
24c04c65cf
updated generated file comment
2020-10-04 19:17:58 +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