Kevin Wan
2b9fc26c38
refactor: guard timeout on API files ( #1726 )
3 years ago
Xiaoju Jiang
321dc2d410
Added support for setting the parameter size accepted by the interface and custom timeout and maxbytes in API file ( #1713 )
...
* Added support for setting the parameter size accepted by the interface
* support custom timeout and maxbytes in API file
* support timeout used unit
* remove goctl maxBytes
3 years ago
Kevin Wan
3b7ca86e4f
chore: add unit tests ( #1615 )
...
* test: add more tests
* test: add more tests
3 years ago
Kevin Wan
842656aa90
feat: log 404 requests with traceid ( #1554 )
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
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
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
fc04ad7854
export pathvar for user-defined routers ( #911 )
...
* refactor
* export pathvar for user-defined routers
3 years ago
另维64
7e087de6e6
doc: fix spell mistake ( #627 )
4 years ago
Kevin Wan
fcd15c9b17
refactor, and add comments to describe graceful shutdown ( #564 )
4 years ago
Kevin Wan
655ae8034c
fix golint issues in rest ( #529 )
4 years ago
Kevin Wan
82d1ccf376
fixes #286 ( #315 )
4 years ago
kevin
fe0d0687f5
support cors in rest server
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
kevin
b541403ce2
export router
4 years ago
kevin
0a7e0cce77
update package reference
4 years ago
kevin
b73684d9a6
move router to httpx
4 years ago
kevin
f372ded63c
rename ngin to rest
4 years ago
kevin
0897f60c5d
rename ngin to rest
4 years ago