We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc4b5c commit 706bb74Copy full SHA for 706bb74
request.go
@@ -1,13 +1,13 @@
1
package ghttp
2
3
import (
4
- "github.com/google/uuid"
5
"io"
6
- "io/ioutil"
7
"net/http"
8
"net/url"
9
"strings"
10
"time"
+
+ "github.com/google/uuid"
11
)
12
13
const DefaultTimeout = 8 * time.Second
@@ -96,12 +96,12 @@ func (r *Request) Send() (*Response, error) {
96
}
97
defer rep.Body.Close()
98
99
- respBody, err := ioutil.ReadAll(rep.Body)
+ respBody, err := io.ReadAll(rep.Body)
100
if err != nil {
101
return nil, err
102
103
104
- response := NewResponse(rep, respBody, time.Now().Sub(start))
+ response := NewResponse(rep, respBody, time.Since(start))
105
106
response.RequestId = r.RequestId
107
0 commit comments