Home
last modified time | relevance | path

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

/unit/test/java/content_type/
H A Dapp.java21 response.setHeader("X-Character-Encoding", response.getCharacterEncoding()); in doGet()
22 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
28 response.setHeader("X-Character-Encoding", response.getCharacterEncoding()); in doGet()
29 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
36 response.setHeader("X-Character-Encoding", response.getCharacterEncoding()); in doGet()
37 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
45 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
53 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
61 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
72 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
[all …]
/unit/test/node/variables/
H A Dapp.js8 res.setHeader('Request-Method', req.method);
9 res.setHeader('Request-Uri', req.url);
10 res.setHeader('Server-Protocol', req.httpVersion);
11 res.setHeader('Request-Raw-Headers', req.rawHeaders.join());
12 res.setHeader('Content-Length', Buffer.byteLength(body));
13 res.setHeader('Content-Type', req.headers['content-type']);
14 res.setHeader('Custom-Header', req.headers['custom-header']);
15 res.setHeader('Http-Host', req.headers['host']);
/unit/test/java/header/
H A Dapp.java19 response.setHeader("X-Set-Utf8-Value", "тест"); in doGet()
20 response.setHeader("X-Set-Utf8-Name-Имя", "x"); in doGet()
28 response.setHeader("X-Set-Test1", "v1"); in doGet()
29 response.setHeader("X-Set-Test1", null); in doGet()
31 response.setHeader("X-Set-Test2", "v1"); in doGet()
32 response.setHeader("X-Set-Test2", ""); in doGet()
/unit/test/node/header_name_case/
H A Dapp.js3 res.setHeader('X-Header', '1');
4 res.setHeader('X-header', '2');
5 res.setHeader('X-HEADER', '3');
/unit/test/node/get_header_names/
H A Dapp.js3 res.setHeader('DATE', ['date1', 'date2']);
4 res.setHeader('X-Header', 'blah');
5 res.setHeader('X-Names', res.getHeaderNames());
/unit/test/node/remove_header/
H A Dapp.js3 res.setHeader('X-Header', 'test');
4 res.setHeader('Was-Header', res.hasHeader('X-Header').toString());
7 res.setHeader('Has-Header', res.hasHeader('X-Header').toString());
/unit/test/node/get_variables/
H A Dapp.js4 res.setHeader('X-Var-1', query.var1);
5 res.setHeader('X-Var-2', query.var2);
6 res.setHeader('X-Var-3', query.var3);
/unit/test/node/post_variables/
H A Dapp.js9 res.setHeader('X-Var-1', query.var1);
10 res.setHeader('X-Var-2', query.var2);
11 res.setHeader('X-Var-3', query.var3);
/unit/test/node/update_header/
H A Dapp.js3 res.setHeader('X-Header', 'test');
4 res.setHeader('X-Header', 'new');
/unit/test/node/get_header_type/
H A Dapp.js3 res.setHeader('X-Number', 100);
4 res.setHeader('X-Type', typeof(res.getHeader('X-Number')));
/unit/test/java/filter/
H A Dapp.java38 ((HttpServletResponse) response).setHeader("X-Filter-After", "1"); in doFilter()
52 response.setHeader("X-Filter-After", "0"); in doGet()
/unit/test/node/set_header_array/
H A Dapp.js3 res.setHeader('Set-Cookie', ['tc=one,two,three', 'tc=four,five,six']);
/unit/test/node/header_value_object/
H A Dapp.js3 res.setHeader('X-Header', {});
/unit/test/node/header_name_valid/
H A Dapp.js4 res.setHeader('@$', 'test');
/unit/test/node/has_header/
H A Dapp.js3 res.setHeader('X-Has-Header', res.hasHeader(req.headers['x-header']) + '');
/unit/src/java/nginx/unit/
H A DResponse.java150 setHeader(req_info_ptr, EXPIRES_BYTES, ZERO_DATE_BYTES); in addSetRFC6265Cookie()
464 setHeader(req_info_ptr, name.getBytes(ISO_8859_1), in setDateHeader()
470 public void setHeader(String name, String value) in setHeader() method in Response
493 setHeader(req_info_ptr, name.getBytes(ISO_8859_1), in setHeader()
497 private static native void setHeader(long req_info_ptr, byte[] name, byte[] value); in setHeader() method in Response
813 setHeader(req_info_ptr, CONTENT_LANGUAGE_BYTES, lang.getBytes(ISO_8859_1)); in setLocale()
H A DIncludeResponseWrapper.java58 public void setHeader(String name, String value) in setHeader() method in IncludeResponseWrapper
H A DContext.java304 response.setHeader("Location", url + "/"); in doGet()
957 resp.setHeader("Location", url + "/"); in service()
/unit/test/java/mirror/
H A Dapp.java29 response.setHeader("Content-Length", dataLength); in doPost()
/unit/test/java/url_pattern/
H A Dapp.java29 response.setHeader("X-Path-Info", "" + request.getPathInfo()); in doGet()
/unit/src/nodejs/unit-http/
H A Dhttp_server.js57 ServerResponse.prototype.setHeader = function setHeader(name, value) { method in ServerResponse
201 this.setHeader(k, obj[k]);
H A Dwebsocket_request.js292 response.setHeader('Origin', allowedOrigin);
295 response.setHeader('Sec-WebSocket-Origin', allowedOrigin);