MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / createHeaders

Function createHeaders

src/Data/Common.js:6–8  ·  view source on GitHub ↗
(contentType = 'application/json')

Source from the content-addressed store, hash-verified

4export {CACHE_EXPIRATION};
5
6function createHeaders(contentType = 'application/json') {
7 return {'Content-Type': contentType};
8}
9
10export async function apiRequest(path, {allowUnauthorized = false, body, contentType, fetchPriority, headers, ...options} = {}) {
11 const response = await fetch(path, {

Callers 1

apiRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected