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
Kevin Wan
83f88d177f
chore: improve codecov ( #2752 )
2 years ago
xiang
641ebf1667
feat: trace http.status_code ( #2708 )
...
* feat: trace http.status_code
* feat: implements http.Flusher & http.Hijacker for traceResponseWriter
* test: delete notTracingSpans after test
* feat: trace http.status_code
* feat: implements http.Flusher & http.Hijacker for traceResponseWriter
* test: delete notTracingSpans after test
* refactor: update trace handler span message
* fix: code conflict
2 years ago
Kevin Wan
dd294e8cd6
fix : #2700 , timeout not enough for writing responses ( #2738 )
...
* fix : #2700 , timeout not enough for writing responses
* fix: test fail
* chore: add comments
2 years ago
JackSon_tm.m
3e9d0161bc
add ServeHTTP to Server/Engin for doing Httptest ( #2704 )
2 years ago
Kevin Wan
cf6c349118
fix : #2735 ( #2736 )
...
* fix : #2735
* chore: make error consistent
2 years ago
Kevin Wan
7a75dce465
refactor: remove duplicated code ( #2705 )
2 years ago
Kevin Wan
fdc57d07d7
fix : #2672 ( #2681 )
...
* fix : #2672
* chore: fix more cases
* chore: update deps
* chore: update deps
* chore: refactor
* chore: refactor
* chore: refactor
2 years ago
re-dylan
ef22042f4d
feat: add dev server and health ( #2665 )
...
* feat: add dev server and health
* fix: fix ci
* fix: fix comment.
* feat: add enabled
* remove no need test
* feat: mv devServer to internal
* feat: default enable pprof
Co-authored-by: dylan.wang <dylan.wang@yijinin.com>
2 years ago
heyehang
a644ec7edd
feature : responses whit context ( #2637 )
2 years ago
chen quan
97a8b3ade5
fix(rest): fix issues#2628 ( #2629 )
2 years ago
王哈哈
dac3600b53
Modify comment syntax error ( #2572 )
2 years ago
Kevin Wan
9cadab2684
chore: refactor ( #2545 )
...
* chore: refactor
* chore: refactor
2 years ago
chen quan
7fe2492009
feat(trace): support for disabling tracing of specified `spanName` ( #2363 )
2 years ago
Kevin Wan
05a5de7c6d
chore: fix lint errors ( #2520 )
2 years ago
Kevin Wan
d4c9fd2aff
chore: add golangci-lint config file ( #2519 )
...
* chore: add golangci-lint config file
* chore: member alignment
2 years ago