Commit Graph

16 Commits

Author SHA1 Message Date
Kevin Wan
40e7a4cd07
chore: refactor httpx.SetOkHandler (#3373) 2023-06-26 00:27:26 +08:00
Kevin Wan
f998803131
chore: refactor and add more tests (#3351) 2023-06-16 01:04:58 +08:00
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
2023-01-24 16:32:02 +08:00
heyehang
a644ec7edd
feature : responses whit context (#2637) 2022-12-03 18:48:02 +08:00
Kevin Wan
d4c9fd2aff
chore: add golangci-lint config file (#2519)
* chore: add golangci-lint config file

* chore: member alignment
2022-10-14 22:45:48 +08:00
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
2022-06-11 23:07:26 +08:00
Kevin Wan
f21970c117
test: add more tests (#1856) 2022-05-02 21:24:20 +08:00
Vee Zhang
94ddb3380e
fix: rest: WriteJson get 200 when Marshal failed. (#1803)
Only the first WriteHeader call takes effect.
2022-04-21 21:55:01 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro (#1413) 2022-01-04 15:51:32 +08:00
Kevin Wan
62266d8f91
fix #1070 (#1389)
* fix #1070

* test: add more tests
2021-12-29 21:34:28 +08:00
Kevin Wan
407a6cbf9c
format coding style (#983) 2021-09-01 19:52:56 +08:00
Vee Zhang
76fc1ef460
httpx.Error response without body (#982)
* httpx.Error support response without body

* fix doc
2021-09-01 19:33:33 +08:00
kevin
9592639cb4 add error handle tests 2020-11-17 18:04:48 +08:00
kevin
2b1466e41e add more tests 2020-08-21 23:09:35 +08:00
kevin
0a7e0cce77 update package reference 2020-08-08 16:40:10 +08:00
kevin
0897f60c5d rename ngin to rest 2020-07-31 11:14:48 +08:00