MCPcopy
hub / github.com/sindresorhus/got / _methodCanHaveBody

Method _methodCanHaveBody

source/core/index.ts:1842–1844  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1840 }
1841
1842 private get _methodCanHaveBody(): boolean {
1843 return !methodsWithoutBody.has(this.options.method) || (this.options.method === 'GET' && this.options.allowGetBody);
1844 }
1845
1846 private _canWriteBody(): boolean {
1847 return !this._noPipe && !this.isReadonly && this._methodCanHaveBody;

Callers

nothing calls this directly

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected