Commit Graph

21 Commits (8e97c5819fa3768ac81e64b6c21277d9b4ff8439)

Author SHA1 Message Date
Kevin Wan 42e0a6f90c
chore: refactor errors to use errors.Is (#3654) 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 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 7a75dce465
refactor: remove duplicated code (#2705) 2 years ago
heyehang a644ec7edd
feature : responses whit context (#2637) 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 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
Vee Zhang 94ddb3380e
fix: rest: WriteJson get 200 when Marshal failed. (#1803)
Only the first WriteHeader call takes effect.
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 9d0b51fa26
fixes #1222 (#1223) 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 655ae8034c
fix golint issues in rest (#529) 4 years ago
kevin 9592639cb4 add error handle tests 4 years ago
kevin abcb28e506 support error customization 4 years ago
kevin 0a7e0cce77 update package reference 4 years ago
kim 44290aa4d6 refactor 4 years ago
kim cf8e0a118f refactor ngin to rest 4 years ago
kevin 0897f60c5d rename ngin to rest 4 years ago