MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / defaultHeaders

Method defaultHeaders

out/cli.cjs:69608–69616  ·  view source on GitHub ↗

* Override this to add your own default headers, for example: * * { * ...super.defaultHeaders(), * Authorization: 'Bearer 123', * }

(opts)

Source from the content-addressed store, hash-verified

69606 /**
69607 * Override this to add your own default headers, for example:
69608 *
69609 * {
69610 * ...super.defaultHeaders(),
69611 * Authorization: 'Bearer 123',
69612 * }
69613 */
69614 defaultHeaders(opts) {
69615 return {
69616 Accept: "application/json",
69617 "Content-Type": "application/json",
69618 "User-Agent": this.getUserAgent(),
69619 ...getPlatformHeaders(),

Callers 1

buildHeadersMethod · 0.80

Calls 4

getPlatformHeadersFunction · 0.85
getPlatformHeaders2Function · 0.85
getUserAgentMethod · 0.80
authHeadersMethod · 0.80

Tested by

no test coverage detected