Igor Mróz
809453f9d5
#315 Checking if server is nullptr.
2018-08-30 17:51:54 +02:00
Jaeseung Ha
49edf898a5
Merge pull request #274 from mwm126/mingw-gmtime_s
...
Use gmtime_s on MinGW
2017-12-27 23:33:31 +09:00
ipknHama
d1a30bf422
Avoid exceptions while closing sockets
2017-12-25 22:36:30 +09:00
ipknHama
05d02fea6e
Remove printf warning for lld, llu
2017-12-25 16:26:30 +09:00
ipknHama
b7360a2bac
Support multiple methods for same URL
...
- fix broken unittests because of server initializing order change
- add a function to wait until server is up
2017-12-25 15:31:20 +09:00
ipknHama
daa1e3eadc
Add PURGE method, add a special enum item for counting
2017-12-25 15:31:20 +09:00
Jaeseung Ha
6876a08e61
Merge pull request #260 from erikaldsund/fix_rvalue_copy_ctor_bug
...
Fixed bug in json::rvalue copy constructor
2017-12-25 15:31:11 +09:00
Jaeseung Ha
943dcba507
Merge pull request #259 from erikaldsund/fix_r_string_inconsistency
...
Fixed bug in r_string
2017-12-25 15:30:32 +09:00
Jaeseung Ha
01cc7a3508
Merge pull request #258 from erikaldsund/fix_handling_of_big_integers
...
Fix handling of big integers
2017-12-25 15:30:06 +09:00
Mark Meredith
6974d3fcf9
Use gmtime_s on MinGW
2017-12-24 12:38:52 -05:00
Jaeseung Ha
49bd1c2797
Merge pull request #261 from erikaldsund/fix_warning_in_websocket_h
...
Fixed warning in websocket.h: right shift count >= width of type
2017-12-25 02:29:25 +09:00
roxma
f0eb73ce8c
Fix ws read failure when using 16bit payload
...
Also should use ntohs instead of htons when read from socket.
2017-12-22 17:53:51 +08:00
Erik Åldstedt Sund
3c45393b2d
Don't call copy_l before all other members are set
...
This lead to undefined behaviour during copy.
2017-10-30 20:51:44 +01:00
Erik Åldstedt Sund
29824c84ed
Fixed bug in r_string: end of string pointer was not updated in the force member function
...
This could lead to undefined behaviour in the std::string conversion
operator, when using the iterator interface (begin() / end()), and the size()
member function.
2017-10-30 20:50:17 +01:00
Erik Åldstedt Sund
ecbbd0ebf2
Fixed ostream operator for big integers
2017-10-30 20:47:48 +01:00
Erik Åldstedt Sund
4fe7dd171a
Handle big integers in json::wvalue
...
Handled by adding an enum num_type in both rvalue and wvalue (to separate
between signed/unsigned ints, and floating point values) and a union for
the number value in wvalue.
2017-10-30 20:47:48 +01:00
Erik Åldstedt Sund
83bd8c09a0
Fixed warning in websocket.h: right shift count >= width of type
...
Fixed by static_cast-ing values from 32-bit values to 64-bit values.
2017-10-30 20:45:34 +01:00
Jaeseung Ha
7f3f72441c
Merge pull request #253 from boodkb/patch_method
...
Add support for HTTP PATCH method
2017-10-21 20:51:35 +09:00
Simon Rasmussen
f88657a22a
Added 413 and 429 status codes
2017-10-20 15:20:18 +02:00
BooD
8b01385465
Add HTTP PATCH support
2017-10-05 18:13:40 +03:00
ipknHama
7560f329c9
Remove unused include.
2017-09-18 04:43:51 +09:00
ipknHama
2c26b6c1de
Change default settings
...
- disable crow debug mode by default
- expose `loglevel` method on `App` to change the logging level easily
- add a startup message that guides how to change the logging level
2017-09-18 02:58:53 +09:00
ipknHama
e93ba25f2c
Fix cookie parsing: Cookie doesn't have escaping mechanism.
2017-09-18 02:39:46 +09:00
ipknHama
9c26e1ebde
Simplify json.keys()
2017-09-18 01:21:18 +09:00
Jaeseung Ha
08acc7c0be
Merge branch 'master' into master
2017-09-18 00:43:42 +09:00
Jaeseung Ha
d8c4a67176
Merge branch 'master' into master
2017-09-17 19:17:54 +09:00
Jaeseung Ha
4786dac0a8
Merge pull request #193 from vadz/show-concurrency
...
Show the number of threads used in the startup message
2017-09-17 18:31:24 +09: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
Jaeseung Ha
c32aae4b5f
Merge pull request #183 from philave/vs2015-compilation-fix
...
MS VS2015 compilation fix.
2017-09-17 18:29:52 +09:00
Jaeseung Ha
ef17b8cb9b
Merge branch 'master' into master
2017-09-17 18:01:57 +09:00
ipknHama
c071f64376
Delete new connection with error while accepting (kwangsei, PR #205 )
2017-09-17 14:13:33 +09:00
Jaeseung Ha
f0cb83df88
Merge pull request #210 from zxmarcos/master
...
Add onaccept handler to websocket rule
2017-09-17 14:17:46 +09:00
Jaeseung Ha
cf67a40e4c
Merge pull request #212 from uctakeoff/fix_warning_in_cpp11
...
Fixed a problem that warning appeared in c ++ 11
2017-09-17 14:10:07 +09:00
ipknHama
92bea9e949
Change vector to unordered_map for get_dict
2017-09-17 14:02:46 +09:00
ipknHama
f35089b2aa
Add missed header file.
2017-09-17 13:47:05 +09:00
Jaeseung Ha
13fdc9390b
Merge pull request #202 from Rasie1/master
...
Conflict with std namespace
2017-09-17 13:50:50 +09:00
ipknHama
69a17f066b
Fix #245 . Trying to keep serving after an exception in the handler.
2017-09-17 12:45:13 +09:00
Jaeseung Ha
2564c62778
Merge pull request #229 from JaewooSeo/wvalue_vector
...
wvalue (json) support vector<wvalue>
2017-09-17 12:40:05 +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
jaewoo.seo
777852c97d
wvalue (json) support vector<wvalue>
2017-05-12 11:43:27 +09:00
Rasie1
01b21296bc
Add get_dict method
2017-03-16 19:25:27 +03:00
ushiyake
bd2dd4a8e4
Fixed a problem that warning appeared in c ++ 11
2017-01-09 21:24:01 +09:00
Marcos Medeiros
bea1ba3797
Add onaccept handler to websocket rule
2016-12-28 11:06:56 -02:00
Vsevolod Kvachev
32d66d6fd1
Upgrade amalgamate
2016-12-06 18:22:10 +03:00
Sergiu Giurgiu
c63113f825
Removed strict-aliasing warning
2016-12-04 14:03:20 -05: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
Vadim Zeitlin
34b050ee8f
Show the number of threads used in the startup message
...
This can be useful, especially when using the default hardware concurrency, to
see how many threads does the server actually use in the logs.
2016-11-15 16:33:14 +01:00
Philip
366e7c7e4b
MS VS2015 compilation fix. It’s better to use native Win32 (strncpy_s, sprintf_s) to avoid compilation errors when building by MS C++.
2016-10-21 18:22:24 +03:00
Taylor King
26c4d5ddef
implement .keys()
2016-10-10 06:10:01 -04:00
yorickdewid
e40605da59
HTTP response redirect
...
- Log address
2016-10-03 15:32:16 +02:00
yorickdewid
f4f6b02403
Set cast type without dereferencing pointer
2016-10-03 13:47:22 +02:00
ipknHama
3081e4e1a8
Cleanup include folder into crow subfolder
...
- only crow.h is exposed now
2016-09-21 23:11:06 +09:00