Commit Graph

1151 Commits

Author SHA1 Message Date
Farook Al-Sammarraie
588020ee1c
Merge pull request #371 from CrowCpp/lowercase_methods
Fixed issue where parser methods were in all caps
2022-03-21 14:22:07 +03:00
Farook Al-Sammarraie
c199fa08dc
removed test changes 2022-03-21 13:57:13 +03:00
Farook Al-Sammarraie
8185e0d0cc
Merge branch 'master' into lowercase_methods 2022-03-21 13:49:23 +03:00
The-EDev
be45925731
fixed issue where parser methods were in all caps 2022-03-21 13:47:46 +03:00
Farook Al-Sammarraie
7f2da9b1c7
Merge pull request #368 from kingster/feature-localtime
Support for `CROW_USE_LOCALTIMEZONE` for using localtime in logs
2022-03-20 22:11:47 +03:00
Kinshuk Bairagi
77e68e45b6
Support for CROW_USE_LOCALTIMEZONE
define CROW_USE_LOCALTIMEZONE macro for explict optin for localtimezone in logs
2022-03-20 23:52:35 +05:30
Farook Al-Sammarraie
b135ec6392
Merge pull request #367 from kingster/feature-additional-httpcodes
Add http 504 codes
2022-03-20 21:18:22 +03:00
Kinshuk Bairagi
ee4ccf755a
Add http 504 codes 2022-03-20 23:23:07 +05:30
Farook Al-Sammarraie
bdbed550bf
Merge pull request #362 from CrowCpp/global_template_base
added `set_global_base` method
2022-03-20 01:17:51 +03:00
The-EDev
a0e6e3756b
added set_global_base method to change the default mustache templates
directory
2022-03-18 13:55:27 +03:00
Farook Al-Sammarraie
a970167205
Merge pull request #359 from CrowCpp/run_async
added run_async method
2022-03-16 23:01:44 +03:00
The-EDev
69feb9c226
Formatting 2022-03-16 21:15:18 +03:00
The-EDev
c858078b4e
Fixed test porblem 2022-03-16 18:45:31 +03:00
Farook Al-Sammarraie
c4bcec1999
Merge branch 'master' into run_async 2022-03-11 10:59:12 +03:00
Farook Al-Sammarraie
293ed2c247
Merge pull request #358 from CrowCpp/multipart_improvements
Improved how multipart messages work
2022-03-11 10:58:56 +03:00
The-EDev
af81ca9034
removed redundant methods (i() and d()) 2022-03-11 10:30:59 +03:00
The-EDev
c0062bd2e7
added run_async method
also added unit tests for #358
2022-03-10 15:44:39 +03:00
Farook Al-Sammarraie
b02e1b1a73
Merge branch 'master' into multipart_improvements 2022-03-10 09:55:35 +03:00
The-EDev
8224854b1d
Improved how multipart messages work
part headers are now in a map rather than a vector
added `get_part_by_name()`
parts and headers can be cast to integer or double (returns the value)
added a boundary to the default content-type (gets set to the request's
boundary if constructed from a request)
2022-03-10 09:52:27 +03:00
Farook Al-Sammarraie
81a1b498b9
Merge pull request #348 from dranikpg/cors-middleware
CORS Middleware
2022-03-09 05:34:11 +03:00
Vladislav
870028ec99
Merge branch 'master' into cors-middleware 2022-03-08 16:53:12 +03:00
Vladislav Oleshko
1c4416ef8d Fixes. Complete builder pattern. Add testcase 2022-03-08 16:33:08 +03:00
Farook Al-Sammarraie
4041dbd0ef
Merge pull request #354 from CrowCpp/multi_file
fixed multiple definition problem
2022-02-23 13:35:44 +03:00
The-EDev
37940d2cc0
fixed multiple definition problem and added test to make sure it doesn't
happen again
2022-02-23 06:00:00 +03:00
Vladislav Oleshko
5f105aca37 Fix clang-format 2022-02-22 17:46:29 +03:00
Vladislav Oleshko
6432d4486d Add example and test 2022-02-22 17:38:51 +03:00
Farook Al-Sammarraie
603cf00b6b
Merge pull request #349 from CrowCpp/reset_parser
Fix issue where `qs_point` wasn't being reset between requests
2022-02-22 14:53:40 +03:00
The-EDev
ac0c756209
clear new parser variables 2022-02-21 17:32:09 +03:00
Vladislav Oleshko
13d62841df CORS Middleware 2022-02-20 22:43:24 +03:00
Farook Al-Sammarraie
4a6d5fe74c
Merge pull request #346 from CrowCpp/returnable_template
Returnable template
2022-02-18 22:08:45 +03:00
The-EDev
4650b5ecde
formatting 2022-02-18 04:31:28 +03:00
The-EDev
8cd9dae961
Edited documentation 2022-02-18 04:28:35 +03:00
The-EDev
9a876e9451
Made template render() function return a returnable instead of a string
Justification is for the content-type header to be set to HTML instead of
text.

Also added render_string() functions to replace the old methods.
2022-02-18 04:25:02 +03:00
Farook Al-Sammarraie
d43d680d08
Merge pull request #332 from CrowCpp/parser_optimization
Parser optimization
2022-02-15 17:10:47 +03:00
Farook Al-Sammarraie
9db0e3b8fe
Merge branch 'master' into parser_optimization 2022-02-15 15:56:48 +03:00
Farook Al-Sammarraie
71f1a51c83
Merge pull request #327 from dranikpg/local-middleware
Local middleware
2022-02-14 23:04:50 +03:00
Farook Al-Sammarraie
1c98bbb860
Merge branch 'master' into local-middleware 2022-02-14 22:17:19 +03:00
Vladislav Oleshko
b9dded57e8 Remove is_callable impl 2022-02-13 14:35:11 +03:00
Farook Al-Sammarraie
ab0f18b102
Merge pull request #342 from CrowCpp/fix-mustache
fix missing `;` in mustache escaping
2022-02-12 05:54:57 +03:00
Farook Al-Sammarraie
9b0f7fdb90
Update mustache.h 2022-02-11 18:26:26 +03:00
Farook Al-Sammarraie
610e82451a
Merge pull request #339 from zefrenchy/master
Added unsafe load functions (allows absolute file for special cases)
2022-02-11 13:15:19 +03:00
Farook Al-Sammarraie
ebef1caa08
Merge branch 'master' into master 2022-02-11 12:51:22 +03:00
Dominique Jacquel
787506350f Add unsafe/unsanitized load functions 2022-02-11 09:48:33 +00:00
The-EDev
4e2074dcb5
ran clang-format 2022-02-11 01:04:32 +03:00
The-EDev
9a7677bf1a
Applied changes from review
Also moved builtin_expect to utility.h (for use in sanitizer function)
2022-02-11 00:56:30 +03:00
Farook Al-Sammarraie
ab50fb3134
Merge branch 'master' into parser_optimization 2022-02-11 00:46:19 +03:00
Farook Al-Sammarraie
5a651b0d0e
Merge pull request #338 from CrowCpp/fix_404_static
Static file 404 fix
2022-02-10 18:50:14 +03:00
The-EDev
9f6e099f10
fixed issue where content length was being set but body wasn't being sent 2022-02-09 20:57:12 +03:00
Farook Al-Sammarraie
e8e46266b3
Merge pull request #328 from Vhuynh25/master
Ignore NaN and infinite values in json::wvalue
2022-02-09 13:27:04 +03:00
Vhuynh25
07a2422c63
changed output to null and changed warning message
also changed from <cmath> to <math.h>
2022-02-08 15:45:49 -08:00