MCPcopy
hub / github.com/di-sukharev/opencommit / generateHTTPMethod

Function generateHTTPMethod

out/cli.cjs:74086–74097  ·  view source on GitHub ↗
(isForm)

Source from the content-addressed store, hash-verified

74084 return this.request(mergeConfig(config8 || {}, {
74085 method,
74086 url: url2,
74087 data: (config8 || {}).data
74088 }));
74089 };
74090});
74091utils_default.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
74092 function generateHTTPMethod(isForm) {
74093 return function httpMethod(url2, data, config8) {
74094 return this.request(mergeConfig(config8 || {}, {
74095 method,
74096 headers: isForm ? {
74097 "Content-Type": "multipart/form-data"
74098 } : {},
74099 url: url2,
74100 data

Callers 1

cli.cjsFile · 0.85

Calls 2

mergeConfigFunction · 0.85
requestMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…