MCPcopy Index your code
hub / github.com/nodejs/node / isCookieField

Function isCookieField

lib/_http_outgoing.js:98–100  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

96// against the word "cookie." As of V8 6.6 this is faster than handrolling or
97// using a case-insensitive RegExp.
98function isCookieField(s) {
99 return s.length === 6 && s.toLowerCase() === 'cookie';
100}
101
102function isContentDispositionField(s) {
103 return s.length === 19 && s.toLowerCase() === 'content-disposition';

Callers 1

processHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…