Commit Graph

58 Commits (4b83f2ebd0d5cb8d1c9afdad8b8643d9a1d078f6)

Author SHA1 Message Date
Kevin Wan 408827d876
fix: issue 3840 (#3845) 10 months ago
Kevin Wan 42e0a6f90c
chore: refactor errors to use errors.Is (#3654) 1 year ago
Kevin Wan cb3ffc76a3
fix: #3478 (#3493) 1 year ago
Kevin Wan 40e7a4cd07
chore: refactor httpx.SetOkHandler (#3373) 1 year ago
Kevin Wan f998803131
chore: refactor and add more tests (#3351) 1 year ago
TaoYu 1262266ac2
feat: httpx add common handler (#3269) 1 year ago
Kevin Wan 6170d7b790
feat: rest validation on http requests (#3041) 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 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 cf6c349118
fix: #2735 (#2736)
* fix: #2735

* chore: make error consistent
2 years ago
Kevin Wan 7a75dce465
refactor: remove duplicated code (#2705) 2 years ago
heyehang a644ec7edd
feature : responses whit context (#2637) 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
Kevin Wan b206dd28a3
feat: support form values in gateway (#2158) 2 years ago
Kevin Wan ed1c937998
feat: convert grpc errors to http status codes (#1997)
* feat: convert grpc errors to http status codes

* chore: circuit break include unimplemented grpc error

* chore: add reference link in comments
2 years ago
Kevin Wan f21970c117
test: add more tests (#1856) 3 years ago
Kevin Wan 3bbc90ec24
refactor: move json related header vars to internal (#1840)
* refactor: move json related header vars to internal

* refactor: use header.ContentType
3 years ago
Kevin Wan cef83efd4e
fix #1838 (#1839) 3 years ago
Vee Zhang 94ddb3380e
fix: rest: WriteJson get 200 when Marshal failed. (#1803)
Only the first WriteHeader call takes effect.
3 years ago
Kevin Wan c1d9e6a00b
feat: add httpc.Parse (#1698) 3 years ago
Kevin Wan a91c3907a8
feat: rename module from tal-tech to zeromicro (#1413) 3 years ago
Kevin Wan 62266d8f91
fix #1070 (#1389)
* fix #1070

* test: add more tests
3 years ago
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>
3 years ago
chenquan 263e426ae1
chore: optimize `ParseJsonBody` (#1353)
* chore: optimize `ParseJsonBody`

* chore: optimize `ParseJsonBody`

* fix: fix a test

* chore: optimize `ParseJsonBody`

* fix a test

* chore: add comment
3 years ago
Kevin Wan 9d0b51fa26
fixes #1222 (#1223) 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
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 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
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
Kevin Wan 655ae8034c
fix golint issues in rest (#529) 4 years ago
Kevin Wan ad32f9de23
fix golint issues in core/threading (#524) 4 years ago
hao 2087ac1e89
修正http转发头字段值错误 (#521) 4 years ago
Kevin Wan 5e969cbef0
fix golint issues, else blocks (#457) 4 years ago
bittoy 88ec89bdbd
optimization (#241) 4 years ago
kevin 9592639cb4 add error handle tests 4 years ago
kevin abcb28e506 support error customization 4 years ago
kevin 668a7011c4 add more tests 4 years ago
kevin fe0d0687f5 support cors in rest server 4 years ago
kevin b8fcdd5460 add more tests 4 years ago
kevin be9c48da7f add tracing logs in server side and client side 4 years ago
kevin 2b1466e41e add more tests 4 years ago
kevin d6c7da521e remove bodyless check 4 years ago
kevin 96b6d2ab58 parse body only if content length > 0 4 years ago