MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / requestHeaders

Function requestHeaders

packages/react/src/api/shell-host.ts:138–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 * follow.
137 */
138 const requestHeaders = (): Record<string, string> => {
139 const headers: Record<string, string> = {
140 "content-type": "application/json",
141 ...getExecutorOrganizationHeaders(),
142 };
143 const authorization = getExecutorServerAuthorizationHeader();
144 if (authorization) headers.authorization = authorization;
145 return headers;
146 };
147
148 const post = async (path: string, payload: Record<string, unknown>): Promise<unknown> => {
149 const response = await doFetch(`${getExecutorApiBaseUrl()}${path}`, {

Callers 2

postFunction · 0.85
createHttpShellHostFunction · 0.85

Tested by

no test coverage detected