update read response
This commit is contained in:
+2
-8
@@ -1,13 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.3crabs.ru/VLADIMIR/net/http"
|
||||
)
|
||||
|
||||
func main() {
|
||||
r, err := http.Do(
|
||||
client := http.NewClient()
|
||||
_, err := client.Do(
|
||||
"GET",
|
||||
"http://test.ru",
|
||||
[]http.Header{
|
||||
@@ -19,9 +18,4 @@ func main() {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Println(r.StatusCode)
|
||||
for _, header := range r.Headers {
|
||||
fmt.Println(header)
|
||||
}
|
||||
fmt.Println(string(r.Body))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user