Kevin Wan
408827d876
fix: issue 3840 ( #3845 )
11 months ago
Kevin Wan
9394e59597
chore: update goctl version to 1.6.0 ( #3674 )
1 year ago
MarkJoyMa
c05e03bb5a
feat: add metrics ( #3624 )
1 year ago
Kevin Wan
c2ff00883a
chore: update restful/grpc servers shutdown stages ( #3662 )
1 year ago
Kevin Wan
42e0a6f90c
chore: refactor errors to use errors.Is ( #3654 )
1 year ago
Kevin Wan
18d66a795d
chore: add more tests ( #3578 )
1 year ago
Kevin Wan
4211672bfd
chore: add more tests ( #3577 )
1 year ago
Awadabang
cc21f5fae2
update: limit logBrief http body size ( #3498 )
...
Co-authored-by: 常公征 <changgz@yealink.com>
1 year ago
Kevin Wan
cb3ffc76a3
fix : #3478 ( #3493 )
1 year ago
Kevin Wan
13cdbdc98b
chore: avoid nested WithCodeResponseWriter ( #3406 )
1 year ago
cong
61e562d0c7
refactor(rest): keep rest log collector context key private ( #3407 )
1 year ago
Kevin Wan
31b9ba19a2
chore: refactor httpx.TimeoutHandler ( #3400 )
1 year ago
扶桑花间
916cea858f
1. Fix w. (http. Flusher). Flush() error ( #3388 )
1 year ago
Kevin Wan
40e7a4cd07
chore: refactor httpx.SetOkHandler ( #3373 )
1 year ago
Kevin Wan
f998803131
chore: refactor and add more tests ( #3351 )
1 year ago
TaoYu
1262266ac2
feat: httpx add common handler ( #3269 )
1 year ago
Kevin Wan
8a4cc4f98d
chore: add more tests ( #3299 )
2 years ago
me-cs
0217044900
update:Use the Milliseconds method of duration to get the number of milliseconds ( #3285 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
SleeplessBot
a93c24ce84
Add method label for prometheus middleware metrics ( #3226 )
...
Co-authored-by: 蓝益尤 <lan.yiyou@intellif.com>
2 years ago
Kevin Wan
9f42eda9ff
fix: timeout handler not implementing http.Flusher ( #3225 )
2 years ago
Kevin Wan
8ffe4c01d1
chore: use logx.Must instead of log.Fatal ( #3189 )
2 years ago
Kevin Wan
14caf5c799
chore: simplify tests with logtest ( #3184 )
2 years ago
Kevin Wan
7568674b2b
chore: use %q instead of %s for unmarshaling ( #3163 )
2 years ago
Kevin Wan
3da740b7fc
chore: remove unnecessary code ( #3161 )
2 years ago
chen quan
ce4eb6ed61
fix: fixed #2945 ( #2953 )
...
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
cong
22fad4bb9c
feat(trace): add trace test helpers ( #3108 )
2 years ago
Kevin Wan
8d0cceb80c
chore: add more tests ( #3084 )
2 years ago
heyehang
e06abf4f6f
fixbug:superfluous response.WriteHeader ( #3083 )
2 years ago
Kevin Wan
6170d7b790
feat: rest validation on http requests ( #3041 )
2 years ago
Kevin Wan
60a13f1e53
chore: add more tests ( #3018 )
2 years ago
sniperwzq
3e093bf34e
defines the method to customize http server ( #2171 )
2 years ago
Kevin Wan
211b9498ef
chore: add more tests ( #3016 )
2 years ago
Kevin Wan
0d5a68869d
fix: gateway conf doesn't work ( #2968 )
2 years ago
Kevin Wan
d9d79e930d
Merge pull request from GHSA-fgxv-gw55-r5fq
...
* fix: Authorization Bypass Through User-Controlled Key
* chore: add not safe domain test
2 years ago
yangjinheng
dbc8f9faca
timeout writer add hijack
2 years ago
yangjinheng
96998ae570
Update timeouthandler.go
2 years ago
Kevin Wan
66be213346
chore: refine rest validator ( #2928 )
...
* chore: refine rest validator
* chore: add more tests
* chore: reformat code
* chore: add comments
2 years ago
Qiying Wang
92c8899f47
feat: add configurable validator for httpx.Parse ( #2923 )
...
Co-authored-by: qiying.wang <qiying.wang@highlight.mobi>
2 years ago
Kevin Wan
238c830f17
fix: timeout not working if greater than global rest timeout ( #2926 )
2 years ago
chenquan
3bc40d9eaf
fix: fixed the bug that old trace instances may be fetched
2 years ago
Kevin Wan
ae87114282
chore: change interface{} to any ( #2818 )
...
* chore: change interface{} to any
* chore: update goctl version to 1.5.0
* chore: update goctl deps
2 years ago
Kevin Wan
696da4efee
chore: add more tests ( #2815 )
...
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
* chore: add more tests
2 years ago
Kevin Wan
4d7fa08b0b
feat: support **struct in mapping ( #2784 )
...
* feat: support **struct in mapping
* chore: fix test failure
2 years ago
Kevin Wan
367afb544c
feat: support ptr of ptr of ... in mapping ( #2779 )
...
* feat: support ptr of ptr of ... in mapping
* feat: support ptr of ptr of time.Duration in mapping
* feat: support ptr of ptr of json.Number in mapping
* chore: improve setting in mapping
* feat: support ptr of ptr encoding.TextUnmarshaler in mapping
* chore: add more tests
* fix: string ptr
* chore: update tests
2 years ago
cong
43b8c7f641
chore(trace): improve rest tracinghandler ( #2783 )
2 years ago
cong
f9619328f2
refactor(rest): use static config for trace ignore paths. ( #2773 )
2 years ago
Kevin Wan
ade6f9ee46
feat: add middlewares config for rest ( #2765 )
...
* feat: add middlewares config for rest
* chore: disable logs in tests
* chore: enable verbose in tests
2 years ago
chen quan
dc260f196a
refactor: simplify the code ( #2763 )
...
* refactor: simplify the code
* fix: fix data race
* refactor: simplify the code
* refactor: simplify the code
2 years ago
chen quan
fc9b3ffdc1
refactor: use opentelemetry's standard api to track http status code ( #2760 )
2 years ago
chen quan
21c49009c0
chore: remove unnecessary code ( #2754 )
2 years ago