MCPcopy Index your code
hub / github.com/anomalyco/opencode / requestInDirectory

Function requestInDirectory

packages/opencode/test/server/httpapi-layer.ts:29–33  ·  view source on GitHub ↗
(path: string, directory: string, init: RequestInit = {})

Source from the content-addressed store, hash-verified

27}
28
29export function requestInDirectory(path: string, directory: string, init: RequestInit = {}) {
30 const headers = new Headers(init.headers)
31 headers.set("x-opencode-directory", directory)
32 return request(path, { ...init, headers })
33}

Callers 14

requestFunction · 0.90
requestFunction · 0.90
requestDefaultFunction · 0.90
openEventStreamFunction · 0.90
requestFunction · 0.90
requestFunction · 0.90

Calls 2

requestFunction · 0.70
setMethod · 0.45

Tested by 7

requestFunction · 0.72
requestFunction · 0.72
requestDefaultFunction · 0.72
openEventStreamFunction · 0.72
requestFunction · 0.72
requestFunction · 0.72
requestFunction · 0.72