req icon indicating copy to clipboard operation
req copied to clipboard

建议实现 Client 和 Request上实现 Do(*http.Request) (*http.Respone , error)方法 方便做作为一个 http.Client 与其他库集成

Open it512 opened this issue 7 months ago • 0 comments

鉴于 Do 函数已经存在,所以 建议如下方式实现

type Doer interface { Do(*http.Request) ( *http.Respone,error) }

req.C().Doer() 返回一个 基于client的 Doer的实现 req.C().R().Doer() 返回一个基于Request 的 Doer实现

it512 avatar May 26 '25 06:05 it512