Kevin Wan
d935c83a54
feat: support baggage propagation in httpc ( #2375 )
...
* feat: support baggage propagation in httpc
* chore: use go 1.16
* chore: use go 1.16
* chore: use go ^1.16
* chore: remove deprecated
2 years ago
Kevin Wan
4cb68a034a
fix #2163 ( #2283 )
2 years ago
Kevin Wan
5cd9229986
fix: only setup logx once ( #2188 )
...
* fix: only setup logx once
* fix: test failure
* chore: not reset logging level in reset
* chore: refactoring
2 years ago
虫子樱桃
d71b3c841f
feat:Add `Routes` method for server ( #2125 )
...
Co-authored-by: czyt <czyt@w.cn>
2 years ago
Kevin Wan
47c49de94e
feat: rest.WithChain to replace builtin middlewares ( #2033 )
...
* feat: rest.WithChain to replace builtin middlewares
* chore: add comments
* chore: refine code
2 years ago
Kevin Wan
018ca82048
chore: refactor to simplify disabling builtin middlewares ( #2031 )
...
* chore: refactor to simplify disabling builtin middlewares
* chore: rename methods
2 years ago
Kevin Wan
af05219b70
test: make tests stable ( #1968 )
...
* test: make tests stable
* test: fix fails
3 years ago
Kevin Wan
f366e1d936
chore: make print pretty ( #1967 )
3 years ago
Kevin Wan
b6b96d9dad
feat: print routes ( #1964 )
...
* feat: print rest routes
* feat: print rest routes
3 years ago
Kevin Wan
69c2bad410
feat: logx with color ( #1872 )
...
* feat: logx with color
* chore: update logs
* fix test error
* chore: change colors of http codes
* chore: add comments
* chore: use faith/color instead of ascii code color
* chore: update colors
* chore: update colors
* chore: fix duplicated slowcall text
* chore: remove slowcall colors
3 years ago
Kevin Wan
d0a59b13a6
chore: fix deprecated usages ( #1871 )
...
* add conf documents
* chore: use {} instead of () for environment variables
* chore: fix deprecated usages
* chore: fix unstable tests
* chore: show stack on github actions
3 years ago
Kevin Wan
2b9fc26c38
refactor: guard timeout on API files ( #1726 )
3 years ago
Kevin Wan
3b7ca86e4f
chore: add unit tests ( #1615 )
...
* test: add more tests
* test: add more tests
3 years ago
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
3 years ago
Kevin Wan
3dda557410
chore: only allow cors middleware to change headers ( #1276 )
3 years ago
Kevin Wan
0395ba1816
feat: add rest.WithCustomCors to let caller customize the response ( #1274 )
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
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
ae98375194
add more tests ( #319 )
4 years ago
kevin
fe0d0687f5
support cors in rest server
4 years ago
kevin
737cd4751a
rename NewPatRouter to NewRouter
4 years ago
kingxt
aa3c391919
api add middleware support ( #140 )
...
* rebase upstream
* rebase
* trim no need line
* trim no need line
* trim no need line
* update doc
* remove update
* remove no need
* remove no need
* goctl add jwt support
* goctl add jwt support
* goctl add jwt support
* goctl support import
* goctl support import
* support return ()
* revert
* refactor and rename folder to group
* remove no need
* add anonymous annotation
* optimized
* rename
* rename
* update test
* api add middleware support: usage:
@server(
middleware: M1, M2
)
* api add middleware support: usage:
@server(
middleware: M1, M2
)
* simple logic
* should reverse middlewares
* optimized
* optimized
* rename
Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kevin
054d9b5540
rename rest files
4 years ago