refactor: update HTTP request handling and improve documentation
- Replaced http.NewRequest with http.NewRequestWithContext in client tests for better context management. - Updated method names and comments for clarity, including renaming GetWsdlUrl to GetWsdlURL and StorageUri to StorageURI for consistency. - Enhanced comments across various files to provide clearer descriptions of functionality and ONVIF specifications.
This commit is contained in:
@@ -266,6 +266,8 @@ func (s *Server) HandleGetImagingSettings(body interface{}) (interface{}, error)
|
||||
}
|
||||
|
||||
// HandleSetImagingSettings handles SetImagingSettings request.
|
||||
//
|
||||
//nolint:gocyclo // SetImagingSettings has high complexity due to multiple validation and update paths
|
||||
func (s *Server) HandleSetImagingSettings(body interface{}) (interface{}, error) {
|
||||
var req SetImagingSettingsRequest
|
||||
if err := unmarshalBody(body, &req); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user