MCPcopy Create free account
hub / github.com/thinkjs/thinkjs / set

Function set

test/case/extend/controller.js:49–55  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

47 return url;
48 },
49 set(name, value) {
50 if (helper.isObject(name)) {
51 this.header = Object.assign({}, this.header, name);
52 return;
53 }
54 this.header[name] = value;
55 },
56 isMethod(method) {
57 return method === this.method;
58 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected