mirror of
https://github.com/SourceFellows/gobuch.git
synced 2025-08-03 13:12:16 +02:00
initial import
This commit is contained in:
17
microservices/http-client-config/main.go
Normal file
17
microservices/http-client-config/main.go
Normal file
@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
client := http.Client{Transport: &http.Transport{
|
||||
ResponseHeaderTimeout: 1 * time.Millisecond,
|
||||
}}
|
||||
res, err := client.Get("https://google.com")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer res.Body.Close()
|
||||
}
|
Reference in New Issue
Block a user