Home
last modified time | relevance | path

Searched refs:headers (Results 1 – 25 of 59) sorted by relevance

123

/unit/test/
H A Dtest_java_application.py49 headers={
94 headers={
116 headers={
132 headers={
155 headers={
169 headers={
181 headers={
194 headers={
205 headers={
770 == headers['X-Real-Path'] + headers['X-Path-Info']
[all …]
H A Dtest_http_header.py12 headers={
28 headers={
44 headers={
60 headers={
76 headers={
92 headers={
108 headers={
158 headers={
172 headers={
186 headers={
[all …]
H A Dtest_node_application.py43 headers={
71 assert headers == {
95 headers={
124 headers={
138 headers={
180 headers={
195 headers={
242 headers={
258 headers={
293 headers={
[all …]
H A Dtest_python_environment.py35 headers={
48 headers={
64 headers={
77 headers={
96 headers={
109 headers={
122 headers={
135 headers={
148 headers={
H A Dtest_asgi_application.py48 assert headers == {
154 headers={
172 headers={
186 headers={
208 headers={
226 headers={
264 headers={
281 headers={
336 headers={
423 headers={
[all …]
H A Dtest_go_application.py20 headers={
30 headers = resp['headers']
31 header_server = headers.pop('Server')
34 date = headers.pop('Date')
40 assert headers == {
66 headers={
95 headers={
109 headers={
124 headers={
H A Dtest_ruby_application.py17 headers={
27 headers = resp['headers']
28 header_server = headers.pop('Server')
31 headers.pop('Server-Software') == header_server
34 date = headers.pop('Date')
40 assert headers == {
347 headers={
361 headers={
379 headers = resp['headers']
382 assert len(headers['X-Engine']) > 0, 'RUBY_ENGINE'
[all …]
H A Dtest_python_application.py142 headers={
166 headers={
180 headers={
258 headers={
275 headers={
309 headers={
411 headers={
422 headers={
433 headers={
444 headers={
[all …]
H A Dtest_php_application.py27 if 'X-OPcache' in headers and headers['X-OPcache'] == '-1':
66 headers={
178 headers={
189 headers={
200 headers={
226 headers={
240 headers={
270 headers={
285 headers={
437 headers={
[all …]
H A Dtest_perl_application.py16 headers={
26 headers = resp['headers']
27 header_server = headers.pop('Server')
30 headers.pop('Server-Software') == header_server
33 date = headers.pop('Date')
39 assert headers == {
196 headers={
210 headers={
263 headers={
H A Dtest_proxy.py213 headers={'Host': 'localhost', 'Custom-Header': header_value}
221 headers={'Host': 'localhost', 'Custom-Header': header_value}
229 headers={'Host': 'localhost', 'Custom-Header': header_value}
237 headers={'Host': 'localhost', 'Custom-Header': header_value}
245 headers={'Host': 'localhost', 'Custom-Header': header_value}
371 headers={
385 headers={
404 headers={
420 headers={
451 resp = self.get_http10(headers={'Host': 'localhost', 'X-Len': '5'})
[all …]
H A Dtest_access_log.py27 headers={
42 headers={
128 headers={
144 headers={
223 self.get(headers={'Connection': 'close'})
H A Dtest_tls.py506 headers={
519 headers={
563 headers={'Host': 'localhost', 'Connection': 'keep-alive'},
575 headers={'Host': 'localhost', 'Connection': 'close'}, sock=sock
606 headers={
629 headers={
646 headers={
662 headers={
/unit/src/java/nginx/unit/websocket/
H A DWsHandshakeResponse.java33 private final Map<String,List<String>> headers = new CaseInsensitiveKeyMap<>(); field in WsHandshakeResponse
40 public WsHandshakeResponse(Map<String,List<String>> headers) { in WsHandshakeResponse() argument
41 for (Entry<String,List<String>> entry : headers.entrySet()) { in WsHandshakeResponse()
42 if (this.headers.containsKey(entry.getKey())) { in WsHandshakeResponse()
43 this.headers.get(entry.getKey()).addAll(entry.getValue()); in WsHandshakeResponse()
46 this.headers.put(entry.getKey(), values); in WsHandshakeResponse()
54 return headers; in getHeaders()
/unit/test/unit/
H A Dhttp.py20 headers = kwargs.get(
72 if 'Content-Length' not in headers:
75 for header, value in headers.items():
112 headers = resp.get('headers')
113 if headers and headers.get('Transfer-Encoding') == 'chunked':
220 headers = {}
224 if m.group(1) not in headers:
225 headers[m.group(1)] = m.group(2)
231 headers[m.group(1)] = [headers[m.group(1)], m.group(2)]
280 headers = resp['headers']
[all …]
/unit/test/node/variables/
H A Dapp.js13 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/get_headers/
H A Dapp.java20 Enumeration<String> headers = request.getHeaders("X-Header"); in doGet() local
22 for (int i = 0; headers.hasMoreElements(); i++) { in doGet()
24 headers.nextElement()); in doGet()
/unit/src/nodejs/unit-http/
H A Dhttp_server.js20 this.headers = {};
39 this.headers = {};
79 if (lc_name in this.headers) {
85 this.headers[lc_name] = [name, value];
97 return Object.keys(this.headers);
103 if (this.headers) {
109 ret[key] = this.headers[key][1];
117 return name.toLowerCase() in this.headers;
127 if (lc_name in this.headers) {
133 let entry = this.headers[lc_name];
[all …]
H A Dwebsocket_request.js116 this.host = request.headers['host'];
121 this.key = request.headers['sec-websocket-key'];
126 this.webSocketVersion = parseInt(request.headers['sec-websocket-version'], 10);
140 e.headers = { class in e
147 this.origin = request.headers['origin'];
150 this.origin = request.headers['sec-websocket-origin'];
154 var protocolString = request.headers['sec-websocket-protocol'];
167 request.headers['x-forwarded-for']) {
169 this.remoteAddresses = request.headers['x-forwarded-for']
176 var extensionsString = request.headers['sec-websocket-extensions'];
[all …]
/unit/test/python/iter_exception/
H A Dwsgi.py16 headers = [(('Content-Length', '10'))]
18 headers = []
23 write = self.start('200', headers)
/unit/test/python/threads/
H A Dasgi.py8 headers = scope.get('headers', [])
11 for h in headers:
/unit/test/python/variables/
H A Dasgi.py11 headers = scope.get('headers', [])
15 for h in headers:
/unit/test/python/delayed/
H A Dasgi.py14 headers = scope.get('headers', [])
17 for h in headers:
/unit/src/java/nginx/unit/websocket/server/
H A DUpgradeUtil.java247 Enumeration<String> headers = req.getHeaders(headerName); in headerContainsToken() local
248 while (headers.hasMoreElements()) { in headerContainsToken()
249 String header = headers.nextElement(); in headerContainsToken()
268 Enumeration<String> headers = req.getHeaders(headerName); in getTokensFromHeader() local
269 while (headers.hasMoreElements()) { in getTokensFromHeader()
270 String header = headers.nextElement(); in getTokensFromHeader()
/unit/test/unit/applications/
H A Dwebsockets.py32 def upgrade(self, headers=None): argument
35 if headers is None:
37 headers = {
47 headers=headers,

123