MCPcopy Create free account
hub / github.com/Kong/insomnia / create

Method create

packages/insomnia-scripting-environment/src/objects/headers.ts:97–99  ·  view source on GitHub ↗

* Creates a new `Header` instance. * * @param input - An object containing `key` and `value` properties, or a string. * If not provided, defaults to an object with empty `key` and `value`. * @param name - An optional name for the header. * @returns A new `Header` instan

(input?: { key: string; value: string } | string, name?: string)

Source from the content-addressed store, hash-verified

95 * @returns A new `Header` instance.
96 */
97 static create(input?: { key: string; value: string } | string, name?: string): Header {
98 return new Header(input || { key: '', value: '' }, name);
99 }
100
101 /**
102 * Determines if the given object is a Header object.

Callers 15

database.test.tsFile · 0.45
fnFunction · 0.45
workspace.test.tsFile · 0.45
createFunction · 0.45
createFunction · 0.45
createFunction · 0.45
createFunction · 0.45

Calls

no outgoing calls

Tested by 1

fnFunction · 0.36