* feat: add HEADER_ACCEPT constant and update requestOptions in ClientTracking * feat: add HEADER_ACCEPT to request headers and improve request options handling * feat: add Accept header to performance report requests
16 lines
491 B
TypeScript
16 lines
491 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
export function getBaseReportRequest(start: number, end: number): {body: PerformanceReport; headers: {}} {
|
|
return {
|
|
body: {
|
|
version: '0.1.0',
|
|
start,
|
|
end,
|
|
labels: {agent: 'rnapp', platform: 'ios'},
|
|
histograms: [],
|
|
counters: [],
|
|
},
|
|
headers: {Accept: 'application/json'},
|
|
};
|
|
}
|