Test: remote handler put

This commit is contained in:
HFO4
2020-01-13 11:03:51 +08:00
parent 37e78cb39b
commit 57d2ad9e5f
4 changed files with 142 additions and 10 deletions

View File

@@ -90,7 +90,6 @@ func WithHeader(header http.Header) Option {
}
// WithContentLength 设置请求大小
// TODO 测试
func WithContentLength(s int64) Option {
return optionFunc(func(o *options) {
o.contentLength = s
@@ -170,7 +169,6 @@ func (resp *Response) CheckHTTPResponse(status int) *Response {
}
// DecodeResponse 尝试解析为serializer.Response并对状态码进行检查
// TODO 测试
func (resp *Response) DecodeResponse() (*serializer.Response, error) {
if resp.Err != nil {
return nil, resp.Err