use-go / onvif

full and enhanced onvif protocol stack in golang.
MIT License
384 stars 180 forks source link

External httpClient support #8

Closed kikimor closed 3 years ago

kikimor commented 3 years ago

Adds the support to make a Device with a customized http.Client:

dev, err := goonvif.NewDevice(goonvif.DeviceParams{
    Xaddr: "172.22.32.10:1899",
    Login: "username",
    Password: "password",
    HttpClient: &http.Client{Timeout: 1 * time.Second},
})
crazybber commented 3 years ago

thanks!