16 lines
410 B
Go
16 lines
410 B
Go
|
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"),
|
||
|
}
|
||
|
}
|