]> 127.0.0.1 Git - part/.git/commitdiff
91 v0.2.1
authorqydysky <qydysky@foxmail.com>
Thu, 5 Nov 2020 21:18:21 +0000 (05:18 +0800)
committerqydysky <qydysky@foxmail.com>
Thu, 5 Nov 2020 21:18:21 +0000 (05:18 +0800)
get/Get.go

index aaeb12187396f9d2554ad4f15f32e6dfa8678a1f..c552d1bc5a6a7a9e632124fc64e6f13535503e1e 100644 (file)
@@ -3,12 +3,14 @@ package part
 import (
        "strings"
        "errors"
+       "net/http"
        p "github.com/qydysky/part"
 )
 
 type get struct {
        body []byte
        
+       Response *http.Response
        RS string
        Err error
 }
@@ -21,7 +23,8 @@ func Get(r p.Rval) (o *get){
        R := p.Req()
        o.Err = R.Reqf(r)
        (*o).body = R.Respon
-
+       (*o).Response = R.Response
+       
        return
 }