MCPcopy Create free account
hub / github.com/emwalker/digraph / headers

Method headers

client/src/server/ServerFetcher.ts:36–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 get headers() {
37 const headers: Headers = {
38 'Content-Type': 'application/json',
39 }
40
41 if (this.viewerId && this.sessionId) {
42 const secret = basicAuthSecret(this.viewerId, this.sessionId)
43 headers.Authorization = `Basic ${secret}`
44 }
45
46 return headers
47 }
48
49 clear() {
50 this.payloads = {}

Callers

nothing calls this directly

Calls 1

basicAuthSecretFunction · 0.90

Tested by

no test coverage detected