Kevin Wan
|
3b7ca86e4f
|
chore: add unit tests (#1615)
* test: add more tests
* test: add more tests
|
2022-03-04 17:54:09 +08:00 |
|
Kevin Wan
|
842656aa90
|
feat: log 404 requests with traceid (#1554)
|
2022-02-19 20:50:33 +08:00 |
|
Kevin Wan
|
a91c3907a8
|
feat: rename module from tal-tech to zeromicro (#1413)
|
2022-01-04 15:51:32 +08:00 |
|
Kevin Wan
|
cd289465fd
|
chore: coding style and comments (#1361)
* chore: coding style and comments
* chore: optimize `ParseJsonBody` (#1353)
* chore: optimize `ParseJsonBody`
* chore: optimize `ParseJsonBody`
* fix: fix a test
* chore: optimize `ParseJsonBody`
* fix a test
* chore: add comment
* chore: refactor
Co-authored-by: chenquan <chenquan.dev@foxmail.com>
|
2021-12-22 21:43:37 +08:00 |
|
charliecen
|
d5e493383a
|
chose: cancel the assignment and judge later (#1359)
Co-authored-by: charliecen <chq@abierr.com>
|
2021-12-22 20:05:35 +08:00 |
|
Kevin Wan
|
3dda557410
|
chore: only allow cors middleware to change headers (#1276)
|
2021-11-26 14:14:06 +08:00 |
|
Kevin Wan
|
c800f6f723
|
chore: avoid superfluous WriteHeader call errors (#1275)
|
2021-11-26 11:09:57 +08:00 |
|
Kevin Wan
|
0395ba1816
|
feat: add rest.WithCustomCors to let caller customize the response (#1274)
|
2021-11-25 23:03:37 +08:00 |
|
Kevin Wan
|
a6c8113419
|
chore: refactor, better goctl message (#1228)
|
2021-11-11 22:58:33 +08:00 |
|
Kevin Wan
|
28409791fa
|
feat: support CORS, better implementation (#1217)
* feat: support CORS, better implementation
* chore: refine code
|
2021-11-09 20:35:57 +08:00 |
|
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
|
2021-11-07 22:42:40 +08:00 |
|
Kevin Wan
|
769d06c8ab
|
refactor: simplify tls config in rest (#1181)
|
2021-10-31 14:10:47 +08:00 |
|
Howie
|
cd1f8da13f
|
[update] add plugin config (#1180)
Signed-off-by: lihaowei <haoweili35@gmail.com>
|
2021-10-31 12:56:25 +08:00 |
|
Kevin Wan
|
6476da4a18
|
rest log with context (#998)
|
2021-09-05 22:58:42 +08:00 |
|
Allen Liu
|
3b683fd498
|
feat: change logger to traceLogger for getting traceId when recovering (#374)
|
2021-09-05 22:40:10 +08:00 |
|
Kevin Wan
|
fc04ad7854
|
export pathvar for user-defined routers (#911)
* refactor
* export pathvar for user-defined routers
|
2021-08-14 22:57:28 +08:00 |
|
fangjianwei
|
b812e74d6f
|
Fixed http listener error. (#843)
|
2021-07-24 12:57:56 +08:00 |
|
Kevin Wan
|
1a1a6f5239
|
add http hijack methods (#555)
|
2021-03-09 21:30:45 +08:00 |
|
Kevin Wan
|
655ae8034c
|
fix golint issues in rest (#529)
|
2021-03-01 19:15:35 +08:00 |
|
Kevin Wan
|
395a1db22f
|
add more tests for rest (#462)
|
2021-02-10 23:08:48 +08:00 |
|
Kevin Wan
|
42883d0899
|
fix golint issues, redis methods (#455)
|
2021-02-09 10:58:11 +08:00 |
|
Kevin Wan
|
e97e1f10db
|
simplify code with http.Flusher type conversion (#325)
* simplify code with http.Flusher type conversion
* simplify code with http.Flusher type conversion, better version
|
2020-12-29 10:25:55 +08:00 |
|
jichangyun
|
0bd2a0656c
|
The ResponseWriters defined in rest.handler add Flush interface. (#318)
|
2020-12-28 21:30:24 +08:00 |
|
kevin
|
3806e66cf1
|
simplify http server starter
|
2020-11-08 13:17:14 +08:00 |
|
kevin
|
bd430baf52
|
graceful shutdown refined
|
2020-11-08 13:08:00 +08:00 |
|
kevin
|
c9ec22d5f4
|
add https listen and serve
|
2020-11-05 11:56:40 +08:00 |
|
kevin
|
4c9315e984
|
add more tests
|
2020-10-31 22:10:11 +08:00 |
|
kevin
|
86d3de4c89
|
use package level defined contextKey as context key
|
2020-09-20 12:46:35 +08:00 |
|
kevin
|
80d55dbc02
|
export httpx.GetRemoteAddr
|
2020-08-12 12:25:52 +08:00 |
|
kevin
|
b541403ce2
|
export router
|
2020-08-12 12:16:36 +08:00 |
|
kevin
|
a7c02414f3
|
export token parser for refresh token service
|
2020-08-12 12:12:31 +08:00 |
|
kevin
|
0a7e0cce77
|
update package reference
|
2020-08-08 16:40:10 +08:00 |
|
kevin
|
b73684d9a6
|
move router to httpx
|
2020-07-31 12:13:30 +08:00 |
|
kevin
|
f372ded63c
|
rename ngin to rest
|
2020-07-31 11:45:16 +08:00 |
|
kevin
|
0897f60c5d
|
rename ngin to rest
|
2020-07-31 11:14:48 +08:00 |
|