From f03e1ae2778c44b48ede732ae5c5bb76f8e27271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=8B=E7=8A=B6=E5=85=88=E7=94=9F?= <418765149@qq.com> Date: Wed, 6 Sep 2023 10:01:54 +0000 Subject: [PATCH] =?UTF-8?q?update=20handbook/docs/http.mdx.=20.OnException?= =?UTF-8?q?((res,errors)=20=3D>=20.OnException((res,errors,statusCodeInfo)?= =?UTF-8?q?=20=E8=AF=AD=E6=B3=95=E5=B7=B2=E7=BB=8F=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 蒋状先生 <418765149@qq.com> --- handbook/docs/http.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handbook/docs/http.mdx b/handbook/docs/http.mdx index 7a009a48a5..a398533f37 100644 --- a/handbook/docs/http.mdx +++ b/handbook/docs/http.mdx @@ -1547,7 +1547,7 @@ services.AddRemoteRequest(options => //请求并且序列化请求结果 var result = await "https://api.facebook.com/" //如果不加OnException,则会直接截断 - .OnException((res,errors)=> { + .OnException((res,errors,statusCodeInfo)=> { //激活异步拦截 此处可以做记录日志操作 也可保持现状 }) .PostAsAsync(); -- Gitee