Home
last modified time | relevance | path

Searched refs:setHeader (Results 1 – 25 of 87) sorted by relevance

1234

/third_party/node/test/parallel/
Dtest-http2-compat-serverresponse-headers.js20 response.setHeader(real, expectedValue);
32 response.setHeader(real, expectedValue);
38 response.setHeader(denormalised, expectedValue);
63 () => response.setHeader(header, 'foobar'),
71 response.setHeader(real, null);
78 response.setHeader(real, undefined);
85 () => response.setHeader(), // Header name undefined
94 () => response.setHeader(''),
102 response.setHeader(real, expectedValue);
126 () => response.setHeader(real, expectedValue),
[all …]
Dtest-http-mutable-headers.js55 () => res.setHeader(),
63 () => res.setHeader('someHeader'),
90 res.setHeader('x-test-header', 'testing');
91 res.setHeader('X-TEST-HEADER2', 'testing');
92 res.setHeader('set-cookie', cookies);
93 res.setHeader('x-test-array-header', arrayValues);
146 res.setHeader('content-length', content.length);
151 res.setHeader('transfer-encoding', 'chunked');
157 res.setHeader('x-foo', 'keyboard cat');
Dtest-http-outgoing-proto.js18 outgoingMessage.setHeader();
27 outgoingMessage.setHeader('test');
36 outgoingMessage.setHeader(404);
45 outgoingMessage.setHeader.call({ _header: 'test' }, 'test', 'value');
54 outgoingMessage.setHeader('200', 'あ');
Dtest-debugger-websocket-secret-mismatch.js25 res.setHeader('Upgrade', 'websocket');
26 res.setHeader('Connection', 'Upgrade');
27 res.setHeader('Sec-WebSocket-Accept', 'fhqwhgads');
28 res.setHeader('Sec-WebSocket-Protocol', 'chat');
Dtest-http-generic-streams.js12 res.setHeader('Content-Type', 'text/plain');
36 res.setHeader('Content-Type', 'text/plain');
74 res.setHeader('Content-Type', 'text/plain');
112 res.setHeader('Content-Type', 'text/plain');
113 res.setHeader('Content-Length', testData.length);
137 req.setHeader('Content-Length', testData.length);
Dtest-http-set-header-chain.js12 let retval = res.setHeader('testheader1', 'foo');
17 retval = res.setHeader('testheader2', 'bar').setHeader('testheader3', 'xyz');
Dtest-http-write-head.js31 res.setHeader('test', '1');
36 () => res.setHeader(0xf00, 'bar'),
46 () => res.setHeader('foo', undefined),
Dtest-http2-server-set-header.js12 res.setHeader('foobar', 'baz');
13 res.setHeader('X-POWERED-BY', 'node-test');
14 res.setHeader('connection', 'connection-test');
Dtest-http-automatic-headers.js7 res.setHeader('X-Date', 'foo');
8 res.setHeader('X-Connection', 'bar');
9 res.setHeader('X-Content-Length', 'baz');
Dtest-http-raw-headers.js68 res.setHeader('Trailer', 'x-foo');
84 req.setHeader('transfer-ENCODING', 'CHUNKED');
85 req.setHeader('x-BaR', 'yoyoyo');
Dtest-http-response-add-header-after-sent.js7 res.setHeader('header1', 1);
10 () => res.setHeader('header2', 2),
Dtest-http-invalidheaderfield.js12 res.setHeader('testing_123', 123);
14 res.setHeader('testing 123', 123);
Dtest-http2-compat-serverresponse-headers-after-destroy.js18 response.setHeader('test', 'value');
22 response.setHeader('test', 'value');
Dtest-http-response-multiheaders.js37 res.setHeader(name, ['A', 'B']);
39 res.setHeader('X-A', ['A', 'B']);
Dtest-http-server-capture-rejections.js13 res.setHeader('content-type', 'application/json');
51 res.setHeader('content-type', 'application/json');
Dtest-http-flush-headers.js18 req.setHeader('foo', 'bar');
Dtest-http2-removed-header-stays-removed.js8 response.setHeader('date', 'snacks o clock');
/third_party/node/benchmark/fixtures/
Dsimple-http-server.js78 res.setHeader('Content-Type', 'text/plain');
79 res.setHeader('Transfer-Encoding', 'chunked');
82 res.setHeader('Content-Type', 'text/plain');
104 res.setHeader('Content-Type', 'text/plain');
106 res.setHeader('Transfer-Encoding', 'chunked');
108 res.setHeader('Content-Length', len.toString());
111 res.setHeader('Content-Type', 'text/plain');
/third_party/node/deps/npm/node_modules/request/
Drequest.js290 self.setHeader(hostHeaderName, self.uri.host)
295 self.setHeader(hostHeaderName, self.uri.hostname)
387 self.setHeader('accept-encoding', 'gzip, deflate')
398 self.setHeader('proxy-authorization', authHeader)
435 self.setHeader('content-length', length)
500 self.setHeader('content-type', mime.lookup(src.path))
506 self.setHeader(i, src.headers[i])
511 self.setHeader('content-type', 'application/json')
562 self.setHeader('content-length', 0)
570 self.setHeader(self._form.getHeaders(), true)
[all …]
/third_party/node/deps/npm/node_modules/socks-proxy-agent/node_modules/agent-base/test/
Dtest.js249 res.setHeader('X-Foo', 'bar');
250 res.setHeader('X-Url', req.url);
276 res.setHeader('X-Foo', 'bar');
277 res.setHeader('X-Url', req.url);
305 res.setHeader('X-Foo', 'bar');
306 res.setHeader('X-Url', req.url);
333 res.setHeader('X-Url', req.url);
431 res.setHeader('X-Foo', 'bar');
432 res.setHeader('X-Url', req.url);
513 res.setHeader('X-Foo', 'bar');
[all …]
/third_party/node/deps/npm/node_modules/agent-base/test/
Dtest.js250 res.setHeader('X-Foo', 'bar');
251 res.setHeader('X-Url', req.url);
277 res.setHeader('X-Foo', 'bar');
278 res.setHeader('X-Url', req.url);
306 res.setHeader('X-Foo', 'bar');
307 res.setHeader('X-Url', req.url);
334 res.setHeader('X-Url', req.url);
432 res.setHeader('X-Foo', 'bar');
433 res.setHeader('X-Url', req.url);
514 res.setHeader('X-Foo', 'bar');
[all …]
/third_party/node/deps/npm/node_modules/request/lib/
Dmultipart.js50 self.request.setHeader('transfer-encoding', 'chunked')
56 self.request.setHeader('content-type', 'multipart/related; boundary=' + self.boundary)
61 self.request.setHeader('content-type', header + '; boundary=' + self.boundary)
Dredirect.js72 request.setHeader('authorization', authHeader)
144 request.setHeader('referer', uriPrev.href)
/third_party/node/benchmark/async_hooks/
Dasync-resource-vs-destroy.js142 res.setHeader('content-type', 'application/json');
153 res.setHeader('content-type', 'application/json');
/third_party/node/benchmark/http/
Dset_header.js24 og.setHeader(value, '');

1234