Commit Graph

255 Commits

Author SHA1 Message Date
Leo
040fee5669
feat: httpx.Parse supports parsing structures that implement the Unmarshaler interface (#4143) 2024-05-11 22:25:10 +08:00
chen quan
9d551d507f
chore(api/maxconnshandler): add tracing information to the log (#4126) 2024-05-08 05:25:35 +00:00
Kevin Wan
d371ab5479
feat: use breaker with ctx to prevent deadline exceeded (#4091)
Signed-off-by: kevin <wanjunfeng@gmail.com>
2024-04-18 23:18:49 +08:00
Kevin Wan
3866b5741a
feat: support http stream response (#4055) 2024-04-09 20:46:44 +08:00
Kevin Wan
5fbe8ff5c4
chore: coding style (#4054) 2024-04-09 17:19:47 +08:00
Kevin Wan
64d430d424
fix: bug on form data with slices (#4040) 2024-04-04 20:28:54 +08:00
Kevin Wan
5dd9342703
chore: fix test failure (#4031) 2024-03-30 13:29:58 +08:00
shyandsy
3ef59f6a71
fix(httpx): support array field for request dto (#4026)
Co-authored-by: yshi3 <yshi3@tesla.com>
2024-03-30 12:10:56 +08:00
Kevin Wan
cc2a7e97f9
chore: coding style, add code for prometheus (#4002) 2024-03-13 20:00:35 +08:00
Kevin Wan
e9e55125a9
chore: fix warnings (#3990) 2024-03-09 13:48:11 +08:00
Alex Last
ba1d6e3664
fix: only add log middleware to not found handler when enabled (#3969) 2024-03-05 04:14:54 +00:00
Kevin Wan
6be37ad533
chore: optimize coding style and add unit tests (#3917) 2024-02-17 15:50:07 +08:00
chen quan
28cb2c5804
feat: support sse ignore timeout (#2041)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2024-02-17 07:06:45 +00:00
Kevin Wan
9c17499757
optimize: shedding algorithm performance (#3908) 2024-02-15 20:22:22 +08:00
Kevin Wan
97cf2421de
chore: add more tests (#3888) 2024-02-03 20:33:20 +08:00
Kevin Wan
408827d876
fix: issue 3840 (#3845) 2024-01-13 23:48:50 +08:00
Kevin Wan
9394e59597
chore: update goctl version to 1.6.0 (#3674) 2023-10-27 21:59:35 +08:00
MarkJoyMa
c05e03bb5a
feat: add metrics (#3624) 2023-10-26 15:51:28 +00:00
Kevin Wan
c2ff00883a
chore: update restful/grpc servers shutdown stages (#3662) 2023-10-23 13:03:05 +00:00
Kevin Wan
42e0a6f90c
chore: refactor errors to use errors.Is (#3654) 2023-10-21 00:00:57 +08:00
Kevin Wan
18d66a795d
chore: add more tests (#3578) 2023-09-20 23:52:10 +08:00
Kevin Wan
4211672bfd
chore: add more tests (#3577) 2023-09-20 00:01:26 +08:00
Awadabang
cc21f5fae2
update: limit logBrief http body size (#3498)
Co-authored-by: 常公征 <changgz@yealink.com>
2023-09-16 11:58:21 +00:00
Kevin Wan
cb3ffc76a3
fix: #3478 (#3493) 2023-08-14 14:22:22 +00:00
Kevin Wan
13cdbdc98b
chore: avoid nested WithCodeResponseWriter (#3406) 2023-07-11 15:59:43 +00:00
cong
61e562d0c7
refactor(rest): keep rest log collector context key private (#3407) 2023-07-10 01:52:26 +00:00
Kevin Wan
31b9ba19a2
chore: refactor httpx.TimeoutHandler (#3400) 2023-07-09 07:04:59 +00:00
扶桑花间
916cea858f
1. Fix w. (http. Flusher). Flush() error (#3388) 2023-07-05 15:27:15 +00:00
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
TaoYu
1262266ac2
feat: httpx add common handler (#3269) 2023-06-15 15:31:15 +00:00
Kevin Wan
8a4cc4f98d
chore: add more tests (#3299) 2023-05-29 23:44:36 +08:00
me-cs
0217044900
update:Use the Milliseconds method of duration to get the number of milliseconds (#3285)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2023-05-26 14:32:46 +00:00
SleeplessBot
a93c24ce84
Add method label for prometheus middleware metrics (#3226)
Co-authored-by: 蓝益尤 <lan.yiyou@intellif.com>
2023-05-08 12:59:20 +00:00
Kevin Wan
9f42eda9ff
fix: timeout handler not implementing http.Flusher (#3225) 2023-05-08 18:07:02 +08:00
Kevin Wan
8ffe4c01d1
chore: use logx.Must instead of log.Fatal (#3189) 2023-04-29 23:46:04 +08:00
Kevin Wan
14caf5c799
chore: simplify tests with logtest (#3184) 2023-04-29 20:36:29 +08:00
Kevin Wan
7568674b2b
chore: use %q instead of %s for unmarshaling (#3163) 2023-04-24 12:11:12 +08:00
Kevin Wan
3da740b7fc
chore: remove unnecessary code (#3161) 2023-04-23 22:58:22 +08:00
chen quan
ce4eb6ed61
fix: fixed #2945 (#2953)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2023-04-23 14:22:03 +00:00
cong
22fad4bb9c
feat(trace): add trace test helpers (#3108) 2023-04-08 14:52:25 +00:00
Kevin Wan
8d0cceb80c
chore: add more tests (#3084) 2023-03-31 22:33:43 +08:00
heyehang
e06abf4f6f
fixbug:superfluous response.WriteHeader (#3083) 2023-03-31 13:05:29 +00:00
Kevin Wan
6170d7b790
feat: rest validation on http requests (#3041) 2023-03-19 12:04:18 +00:00
Kevin Wan
60a13f1e53
chore: add more tests (#3018) 2023-03-12 20:42:50 +08:00
sniperwzq
3e093bf34e
defines the method to customize http server (#2171) 2023-03-11 23:15:00 +08:00
Kevin Wan
211b9498ef
chore: add more tests (#3016) 2023-03-11 22:22:39 +08:00
Kevin Wan
0d5a68869d
fix: gateway conf doesn't work (#2968) 2023-03-05 22:19:58 +08:00
Kevin Wan
d9d79e930d
Merge pull request from GHSA-fgxv-gw55-r5fq
* fix: Authorization Bypass Through User-Controlled Key

* chore: add not safe domain test
2023-03-04 23:34:11 +08:00
yangjinheng
dbc8f9faca timeout writer add hijack 2023-03-04 11:50:04 +00:00