Commit Graph

1088 Commits

Author SHA1 Message Date
antao
944d1e786d Delete useless log output 2019-11-05 14:28:17 +08:00
antao
0133e47e8f Update drogon version to v1.0.0-beta10 2019-11-04 10:19:20 +08:00
Marwan Rabbâa
fc8abadaeb fix(compilation on alpine): Replace non standard u_short alias (#292) 2019-11-03 23:32:37 +08:00
An Tao
a71e37d86e
Modify some type names to meet the Google Style (#291) 2019-11-01 19:19:25 +08:00
An Tao
dbf20200fc
Add the headers configuration option for static files (#290) 2019-10-31 15:47:12 +08:00
antao
ac377bd650 Update drogon version to v1.0.0-beta9 2019-10-29 14:02:00 +08:00
An Tao
876e21f492
Implement relationships in ORM (#288) 2019-10-26 23:44:31 +08:00
An Tao
4868aa964d
Fix a busy loop bug when connections to mysql server are timeout (#286) 2019-10-21 19:10:59 +08:00
An Tao
e7b6ba27bb
Make user can use a custom type parameter instead of the first parameter in handlers of HttpControllers (#284) 2019-10-19 14:27:34 +08:00
An Tao
3a3a5636e8
Add type conversion methods to the HttpRequest and HttpResponse classes (#283) 2019-10-18 22:26:20 +08:00
An Tao
228bac1cfb
Make user can use any string as a placeholder's name in routing patterns (#282) 2019-10-17 17:12:52 +08:00
An Tao
d830c4f057
Fix some race conditions (#280)
* Fix a race condition of static files

* Fix a race condition of 404 pages
2019-10-17 09:23:14 +08:00
Daniel Mensinger
ddc41f7907 Add option to disable setting the 404 status code (#277) 2019-10-11 21:54:01 +08:00
An Tao
8f5c757ce2
Modify the quit() method (#276) 2019-10-11 17:24:28 +08:00
An Tao
df82728a45
Add interfaces for accessing content of attachments. (#274) 2019-10-08 15:46:48 +08:00
WojciechMigda
c9076220ac Fix size_t underflow (#272)
This fixes abnormal behaviour when controller without namespace
is being created
2019-10-06 09:43:08 +08:00
An Tao
f9998996a5
Modify cmake configuration (#271) 2019-10-04 22:24:34 +08:00
antao
5b40410466 Update drogon version to v1.0.0-beta8 2019-10-04 15:18:09 +08:00
An Tao
e8a6bdc245
Fix some race conditions (#270) 2019-10-04 14:17:48 +08:00
Daniel Mensinger
656bd2462b Do not use smart pointers in thread storage (#269) 2019-10-03 19:22:37 +08:00
An Tao
d6e5c1959c
Modify some code of responses cache (#268) 2019-10-03 17:50:55 +08:00
An Tao
323bf0693a
Use the IOThreadStorage for responses caching and fast database clients storage (#267) 2019-10-03 10:17:54 +08:00
Daniel Mensinger
daf72d3059 Ensure AutoInit can only be used with std::shared_ptr (#266) 2019-10-03 01:47:51 +08:00
Daniel Mensinger
ffb8a9d0e4 Thread storage (#265) 2019-10-02 22:29:25 +08:00
An Tao
f9d7f589a2
Add the getCurrentThreadIndex() method (#264) 2019-10-01 20:33:25 +08:00
An Tao
5605d7d351
Fix a error in setThreadNum method (#263) 2019-10-01 01:40:22 +08:00
An Tao
56b9a320b5
Fix a error in HttpClient (#262) 2019-10-01 00:58:30 +08:00
An Tao
70eda27427
Add the ability to create restful API controllers (#244)
* Add the ability to create restful API controllers

* Update the model.json template file

* Modify the 'create controller' command of the drogon_ctl

* access column values by column array indexes instead of column names when constructing an instance of a model class

* Fix a bug of mysql database

* Add some static SQL into models

* Add validations to models

* Add setToNull method to models

* Support 'where in' substatement

* Delay rendering from json to the response body. This allows users to modify the json object before sending a response.

* Add synchronous method to the HttpClient class
2019-09-30 21:34:30 +08:00
An Tao
2cdc060ed7
Add a setCustomContentTypeString() method to the HttpRequest class (#261) 2019-09-30 09:27:34 +08:00
Armstrong
1414704b44 add per request attribute store (#259) 2019-09-28 21:48:06 +08:00
An Tao
93573c99bf
Fix the fail in travis ci (#260) 2019-09-28 20:35:05 +08:00
An Tao
0b45135391
Modify database tests (#258) 2019-09-27 17:34:02 +08:00
An Tao
eed9c06250
Fix some compilation warnings (#257) 2019-09-27 16:05:38 +08:00
Daniel Mensinger
795079531a cmake: use export namespace for Drogon::Drogon (#255)
* cmake: use ${PROJECT_NAME} instead of drogon everywere

* cmake: use export namespace instead of dummy library
2019-09-26 19:33:58 +08:00
Armstrong
ae01eb5ded fix url decode (#256)
* urldecode: should always unescaped chars
2019-09-26 10:06:09 +08:00
An Tao
569f1677ce
Fix bug with parsing json (#253) 2019-09-23 18:14:58 +08:00
An Tao
b38a01bdea
Fix a sqlite3 bug when some SQL errors occur (#252) 2019-09-23 08:59:10 +08:00
An Tao
db18f565e1
Fix bug when using 'is null' substatement in ORM (#250) 2019-09-22 21:16:53 +08:00
antao
543d1a8c80 Fix a bug when HTTP method is PUT 2019-09-16 13:01:40 +08:00
An Tao
9855fc9b4f
Fix bugs in HTTP view examples (#246) 2019-09-16 10:10:23 +08:00
An Tao
456d003482
Add prefixes to column name variables in model classes (#242) 2019-09-13 08:28:58 +08:00
An Tao
fff40952a3
Modify the method to generate the 404 page (#240) 2019-09-11 15:14:40 +08:00
An Tao
1e83a5cc4e
Fix a bug of creating models for mysql (#237) 2019-09-10 15:58:42 +08:00
An Tao
aaaba8aa97
Fix a bug of models (#239) 2019-09-10 15:14:57 +08:00
An Tao
6ef7cffabb
Add the schema option for creating models (pg database only) (#238) 2019-09-10 13:46:10 +08:00
An Tao
5d3fda57a0
Remove ClassTraits.h (#235) 2019-09-07 21:00:51 +08:00
An Tao
195bc5299e
Add comments for doxygen (#233) 2019-09-06 23:10:36 +08:00
An Tao
473b1c86f0
Fix a bug in the HttpServer class (#232) 2019-09-03 15:03:12 +08:00
An Tao
657dc840a9
Modify the processing of bool type column in ORM (#231) 2019-09-02 07:47:36 +08:00
An Tao
eb894396c7
Use find('x') instead of find(x) in a string search (#230) 2019-09-01 12:06:19 +08:00