Kevin Wan
|
26101732d2
|
test: add more tests (#1352)
|
3 years ago |
Kevin Wan
|
71d40e0c08
|
Revert "排除客户端中断导致的503错误 (#1343)" (#1351)
This reverts commit 2cdf5e7395 .
|
3 years ago |
Kevin Wan
|
4ba2ff7cdd
|
feat: treat client closed requests as code 499 (#1350)
* feat: treat client closed requests as code 499
* chore: add comments
|
3 years ago |
vic
|
2cdf5e7395
|
排除客户端中断导致的503错误 (#1343)
|
3 years ago |
Kevin Wan
|
3dda557410
|
chore: only allow cors middleware to change headers (#1276)
|
3 years ago |
Kevin Wan
|
c800f6f723
|
chore: avoid superfluous WriteHeader call errors (#1275)
|
3 years ago |
Kevin Wan
|
0395ba1816
|
feat: add rest.WithCustomCors to let caller customize the response (#1274)
|
3 years ago |
Kevin Wan
|
a6c8113419
|
chore: refactor, better goctl message (#1228)
|
3 years ago |
Kevin Wan
|
9d0b51fa26
|
fixes #1222 (#1223)
|
3 years ago |
Kevin Wan
|
28409791fa
|
feat: support CORS, better implementation (#1217)
* feat: support CORS, better implementation
* chore: refine code
|
3 years ago |
Kevin Wan
|
c28e01fed3
|
feat: support CORS by using rest.WithCors(...) (#1212)
* feat: support CORS by using rest.WithCors(...)
* chore: add comments
* refactor: lowercase unexported methods
* ci: fix lint errors
|
3 years ago |
Kevin Wan
|
3ede597a15
|
feat: support customizing timeout for specific route (#1203)
* feat: support customizing timeout for specific route
* test: add more tests
|
3 years ago |
Kevin Wan
|
91b10bd3b9
|
feat: add rest.WithPrefix to support route prefix (#1194)
|
3 years ago |
Kevin Wan
|
7e3fe77e7b
|
chore: update goctl version to 1.2.3, prepare for release (#1193)
* feat: slow threshold customizable in rest
* chore: update goctl version to 1.2.3, prepare for release
|
3 years ago |
Kevin Wan
|
ba43214dae
|
feat: slow threshold customizable in zrpc (#1191)
* feat: slow threshold customizable in rest
* feat: slow threshold customizable in rest
* feat: slow threshold customizable in rest
* feat: slow threshold customizable in zrpc
|
3 years ago |
Kevin Wan
|
ebc90720ea
|
feat: slow threshold customizable in rest (#1189)
* feat: slow threshold customizable in rest
* feat: slow threshold customizable in rest
|
3 years ago |
Kevin Wan
|
769d06c8ab
|
refactor: simplify tls config in rest (#1181)
|
3 years ago |
Howie
|
cd1f8da13f
|
[update] add plugin config (#1180)
Signed-off-by: lihaowei <haoweili35@gmail.com>
|
3 years ago |
Kevin Wan
|
496a2f341e
|
test: add more tests (#1163)
* chore: reverse the order of stopping services
* chore: reverse the order of stopping services
* test: add more tests
|
3 years ago |
Kevin Wan
|
5636bf4955
|
test: add more tests (#1150)
|
3 years ago |
chenquan
|
022c100dc9
|
Add request method in http log (#1120)
* Add request method in http log
* Update log format
|
3 years ago |
Kevin Wan
|
10e7922597
|
feat: opentelemetry integration, removed self designed tracing (#1111)
* feat: opentelemetry integration, removed self designed tracing
* feat: support zipkin on opentelemetry integration
* feat: support zipkin on opentelemetry integration, enable it in conf
* style: format code
* fix: support logx without exporter configured
* fix: check return values
* refactor: simplify code
* refactor: simplify opentelemetry integration
* ci: fix staticcheck errors
|
3 years ago |
Kevin Wan
|
ed15ca04f4
|
fix: opentelemetry traceid not correct (#1108)
|
3 years ago |
Kevin Wan
|
65905b914d
|
ci: add reviewdog (#1096)
|
3 years ago |
Kevin Wan
|
1eb1450c43
|
downgrade golang-jwt to support go 1.14 (#1073)
|
3 years ago |
Kevin Wan
|
30e49f2939
|
fix jwt security issue by using golang-jwt package (#1066)
|
3 years ago |
Kevin Wan
|
6476da4a18
|
rest log with context (#998)
|
3 years ago |
Allen Liu
|
3b683fd498
|
feat: change logger to traceLogger for getting traceId when recovering (#374)
|
3 years ago |
Kevin Wan
|
58874779e7
|
move opentelemetry into trace package, and refactoring (#996)
* move opentelemetry into trace package, and refactoring
* rename rewritten package names
|
3 years ago |
Kevin Wan
|
9bdadf2381
|
fix golint issues (#992)
|
3 years ago |
Kevin Wan
|
407a6cbf9c
|
format coding style (#983)
|
3 years ago |
Vee Zhang
|
76fc1ef460
|
httpx.Error response without body (#982)
* httpx.Error support response without body
* fix doc
|
3 years ago |
Kevin Wan
|
7618139dad
|
refactor (#977)
|
3 years ago |
zhoushuguang
|
280e837c9e
|
rest otel support (#943)
|
3 years ago |
Kevin Wan
|
f669e1226c
|
fix #556 (#938)
|
3 years ago |
Kevin Wan
|
9672298fa8
|
make sure setting code happen before callback in rest (#936)
|
3 years ago |
Kevin Wan
|
9c1ee50497
|
refactor (#920)
|
3 years ago |
chenquan
|
7c842f22d0
|
Add traceId to the response headers (#919)
* Add traceId to the request headers
* Add test cases
* Update refactor code
|
3 years ago |
Kevin Wan
|
fc04ad7854
|
export pathvar for user-defined routers (#911)
* refactor
* export pathvar for user-defined routers
|
3 years ago |
Kevin Wan
|
54d57c7d4b
|
refactor rest code (#895)
|
3 years ago |
voidint
|
28a7c9d38f
|
fix http header binding failure bug #885 (#887)
|
3 years ago |
fangjianwei
|
b812e74d6f
|
Fixed http listener error. (#843)
|
3 years ago |
Chen Quan
|
22a1315136
|
[WIP]Add parse headers info (#805)
* Add parse headers info
* Update parse headers info
|
3 years ago |
Bo-Yi Wu
|
73906f996d
|
chore(format): change by gofumpt tool (#697)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
|
4 years ago |
noel
|
faf4d7e3bb
|
modify the order of PrometheusHandler (#670)
* modify the order of PrometheusHandler
* modify the order of PrometheusHandler
|
4 years ago |
Kevin Wan
|
06eeef2cf3
|
disable prometheus if not configured (#663)
|
4 years ago |
Bo-Yi Wu
|
afd9ff889e
|
chore: update code format. (#628)
|
4 years ago |
另维64
|
7e087de6e6
|
doc: fix spell mistake (#627)
|
4 years ago |
Kevin Wan
|
3c6951577d
|
make hijack more stable (#565)
|
4 years ago |
Kevin Wan
|
fcd15c9b17
|
refactor, and add comments to describe graceful shutdown (#564)
|
4 years ago |