devicemngmt_old/get_header_data.go

16 lines
410 B
Go
Raw Normal View History

2021-08-19 08:06:39 +00:00
package devicemngt
import "net/http"
// getHeaderData ...
func getHeaderData(headers http.Header) HeaderData {
return HeaderData{
UserAgent: headers.Get("User-Agent"),
DeviceID: headers.Get("Deviceid"),
AppVersion: headers.Get("App-Version"),
AppVersionCode: headers.Get("App-Version-Code"),
OSName: headers.Get("Os-Name"),
OSVersion: headers.Get("Os-Version"),
}
}