1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 15:20:55 +00:00
Commit Graph

333 Commits

Author SHA1 Message Date
Ming Deng
650fde66aa Revert "Merge pull request #4254 from astaxie/develop-2.0"
This reverts commit e284b0ddae, reversing
changes made to 8ef8fd2606.
2020-11-26 17:48:29 +08:00
Ming Deng
b4a85c8f13 Remove files 2020-08-16 23:09:19 +08:00
Ming Deng
882aa9b967 Deprecated old web module 2020-08-05 21:57:20 +08:00
Ming Deng
ebc0207909
Merge pull request #4096 from jianzhiyao/request_context
fix memory leak of request context
2020-07-27 18:04:37 +08:00
jianzhiyao
cfff0f3b46 fix memory leak of request context 2020-07-25 00:00:34 +08:00
IamCathal
a66b9950e7 Add Content-length field for logging 2020-07-20 21:23:21 +01:00
Ming Deng
35dcc3df7c
Merge pull request #4058 from a631807682/fix/issues/4054
Fix response payload too large
2020-07-09 16:41:11 +08:00
Chenrui
c3f14a0ad6
refactor: log error when payload too large 2020-07-09 09:45:40 +08:00
Chenrui
946a42c021
fix: response http 413 when body size larger then MaxMemory. 2020-07-08 17:14:52 +08:00
Ming Deng
469f2c226d
Merge pull request #3998 from guhan121/go_modules_route_compatibility
for go modules, generate route by `GO111MODULE=on`
2020-06-25 20:30:27 +08:00
Ming Deng
16b81d09a7 Add prometheus support 2020-06-21 17:10:34 +08:00
flycash
5f31bf45d4 Fix #3949 : store RouterPattern before filter execute so that filter can use the pattern 2020-06-07 23:16:26 +08:00
qiantao
4ffe26a1d2 for go modules, generate route by GO111MODULE=on 2020-05-22 11:35:45 +08:00
Wenkai Yin
5a02c556b2 Send the request from context rather than the original one to handlers
The filters may do some changes to the request, such as putting values in the request's context

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-01-10 17:58:00 +08:00
Luqmanul Hakim
62d96c2e93 router.go: add comment func LogAccess 2019-06-25 08:04:21 +07:00
astaxie
175714f69a
Merge pull request #3627 from haleyly/develop
route request put amendment
2019-04-29 18:18:19 +08:00
haley
d5b70118a3 Merge branch 'develop' of https://github.com/haleyLy/beego into dev 2019-04-28 08:51:34 +08:00
haley
a9629f707e route request put amendment 2019-04-28 08:50:30 +08:00
JessonChan
e8b29c9fd1 handle trace request 2019-03-27 13:34:46 +08:00
astaxie
3ddd8f860e
Merge pull request #3561 from JessonChan/develop
refactor color logger
2019-03-26 19:23:14 +08:00
Yanhui Shen
be31bd2bbd Ensure custom error handler is called 2019-03-13 16:24:04 +08:00
JessonChan
661dcbb6ca router logger modify 2019-03-12 12:11:25 +08:00
JessonChan
4a5e108527 logger color function refactor,easy to read and run more quickly 2019-03-08 11:50:30 +08:00
Waleed Gadelkareem
8995b291a9 Make LogAccess public 2019-02-14 16:30:25 +01:00
JessonChan
2a579eb27c staticcheck checks -ST1003 remove 2019-01-22 20:41:07 +08:00
JessonChan
0d54bbff02 make staticcheck happy 2019-01-22 19:09:57 +08:00
JessonChan
475feb7e24 camel name style 2019-01-22 16:25:17 +08:00
JessonChan
30b80cba92 errors is better style 2019-01-22 16:23:10 +08:00
Ying Zou
fab7c6b6d0 better format
- add comments for public function
- format import order in admin.go
- better format for NewControllerRegister in router.go
2018-11-26 23:19:05 +08:00
wanghui
b021686521
Add .Elapsed in context.ResponseWriter for monitor purpose
With this commit we can record per requests's elapsed time,
so we can easy to monitor that by use a filter.
2018-11-19 16:38:14 +08:00
astaxie
876dce8e54 fix the routerInfo is nil 2018-11-09 18:03:26 +08:00
Colstuwjx
1cbba4d56f Add annotated filter, support @Import, @Filter.
Signed-off-by: Colstuwjx <Colstuwjx@gmail.com>
2018-09-07 15:59:57 +08:00
astaxie
5ba9e63086
Merge branch 'develop' into feature/YAML 2018-07-20 23:24:51 +08:00
astaxie
c9b6e4f825
Merge pull request #2981 from TankTheFrank/fix_template_render_with_automatic_parameter_routing
fixes template rendering with automatic mapped parameters (see #2979)
2018-07-20 15:39:10 +08:00
astaxie
2c779a4287
Merge pull request #3141 from gadelkareem/patch-2
Improve access log
2018-07-20 15:20:15 +08:00
Ruben Cid
7c80bf6f9d Add YAML 2018-05-30 16:06:40 +02:00
Waleed Gadelkareem
d5c1c0e9a4 log errors in access log and make static request logging optional 2018-04-28 20:03:39 +02:00
cloudzhou
6de538b136
execElem.FieldByName as local variable
execElem.FieldByName(fieldType.Name) as local variable
2018-01-25 17:52:09 +08:00
TankTheFrank
2670a86005 fix #2979 2017-12-14 17:55:08 +02:00
BorisBorshevsky
0e369e6df8 fix bug 2017-12-13 15:27:32 +02:00
hao.hu
646acc423e Change HTTPMETHOD type 2017-11-30 01:43:50 +08:00
astaxie
ec6cb43711 fix ci failed 2017-11-27 14:07:05 +08:00
BorisBorshevsky
df37739c7d fix golint comments 2017-11-25 19:18:37 +02:00
astaxie
6827107177
Merge pull request #2706 from fat4lix/bugfix
Fix run controller if it set by RumController and RunMethod in Filterfunc
2017-11-19 11:12:48 +08:00
Waleed Gadelkareem
9fef2f2eb4 Do not escape html if Golang version < 1.7 2017-09-13 03:09:53 +02:00
Waleed Gadelkareem
4921014c64 Add JSON or Apache access log formatting option to config: AccessLogsFormat = JSON_FORMAT or APACHE_FORMAT ref #2738 2017-09-13 02:03:46 +02:00
astaxie
e14113aa0e Merge pull request #2656 from BorisBorshevsky/develop
Allow injecting dependencies to controllers
2017-07-30 23:36:52 +08:00
astaxie
b27ab53017 fix issue for runMethod and runRouter from context 2017-07-18 23:41:50 +08:00
Илья Маслов
47ef2b343e Fix run controller if it set by RumController and RunMethod in Filterfunc 2017-06-09 15:53:03 +03:00
Илья Маслов
80dcdb8645 Fix run controller if it set by RumController and RunMethod in FilterFunc 2017-06-09 15:27:26 +03:00