You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
toolkit/example/http_client/main.go

16 lines
254 B

2 years ago
package main
import (
"fmt"
stdhttp "net/http"
"go.wperron.io/toolkit/http"
)
func main() {
stdclient := stdhttp.Client{}
stdclient.Transport = http.NewFollowRedirect(stdhttp.DefaultTransport)
fmt.Println(stdclient.Get("https://google.com"))
}