/unit/test/python/variables/ |
H A D | asgi.py | 11 headers = scope.get('headers', []) 15 for h in headers:
|
/unit/test/python/delayed/ |
H A D | asgi.py | 14 headers = scope.get('headers', []) 17 for h in headers:
|
/unit/src/java/nginx/unit/websocket/server/ |
H A D | UpgradeUtil.java | 247 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()
|
H A D | WsHandshakeRequest.java | 47 private final Map<String,List<String>> headers; field in WsHandshakeRequest 89 headers = Collections.unmodifiableMap(newHeaders); in WsHandshakeRequest() 114 return headers; in getHeaders()
|
/unit/test/unit/applications/ |
H A D | websockets.py | 33 def upgrade(self, headers=None): argument 36 if headers is None: 38 headers = { 48 headers=headers,
|
/unit/test/ |
H A D | test_access_log.py | 41 headers={ 137 headers={ 156 headers={ 242 client.get(headers={'Connection': 'close'})
|
H A D | test_routing.py | 56 headers={ 952 headers={ 963 headers={ 978 headers={ 988 headers={ 998 headers={ 1014 headers={ 1024 headers={ 1034 headers={ 1045 headers={ [all …]
|
H A D | test_tls.py | 515 headers={ 527 headers={ 572 headers={'Host': 'localhost', 'Connection': 'keep-alive'}, 615 headers={ 643 headers={ 659 headers={
|
H A D | test_tls_sni.py | 34 headers={ 180 headers={'Content-Length': '0', 'Connection': 'close'}, 273 headers={
|
H A D | test_return.py | 181 client.get(headers={"Host": "#foo?bar", "Connection": "close"})[ 196 client.get(headers={"Host": "", "Connection": "close"})['headers'][
|
H A D | test_unix_abstract.py | 57 headers={'Connection': 'close', 'X-Forwarded-For': xff},
|
H A D | test_client_ip.py | 48 headers={'Connection': 'close', 'X-Forwarded-For': xff},
|
H A D | test_reconfigure_tls.py | 59 headers={'Host': 'localhost', 'Connection': 'keep-alive'},
|
H A D | test_java_websockets.py | 178 headers={ 194 headers={ 213 headers={ 229 headers={ 246 headers={ 260 headers={ 279 headers={ 296 headers={ 314 headers={ 333 headers={
|
H A D | test_njs.py | 77 client.get(headers={'Cookie': 'foo=str', 'Connection': 'close'})[
|
/unit/test/node/has_header/ |
H A D | app.js | 3 res.setHeader('X-Has-Header', res.hasHeader(req.headers['x-header']) + '');
|
/unit/test/node/remove_header/ |
H A D | app.js | 6 res.removeHeader(req.headers['x-remove']);
|
/unit/src/java/nginx/unit/websocket/ |
H A D | WsWebSocketContainer.java | 634 Map<String, List<String>> headers = new HashMap<>(); in createRequestHeaders() local 653 headers.put(Constants.HOST_HEADER_NAME, hostValues); in createRequestHeaders() 658 headers.put(Constants.UPGRADE_HEADER_NAME, upgradeValues); in createRequestHeaders() 663 headers.put(Constants.CONNECTION_HEADER_NAME, connectionValues); in createRequestHeaders() 668 headers.put(Constants.WS_VERSION_HEADER_NAME, wsVersionValues); in createRequestHeaders() 673 headers.put(Constants.WS_KEY_HEADER_NAME, wsKeyValues); in createRequestHeaders() 682 headers.put(Constants.WS_EXTENSIONS_HEADER_NAME, in createRequestHeaders() 686 return headers; in createRequestHeaders() 818 parseHeaders(line, headers); in processResponse() 864 List<String> values = headers.get(headerName); in parseHeaders() [all …]
|
/unit/test/node/promise_handler/ |
H A D | app.js | 7 if (req.headers['x-write-call']) {
|
/unit/src/python/ |
H A D | nxt_python_asgi_http.c | 302 PyObject *status, *headers, *res; in nxt_py_asgi_http_response_start() local 316 headers = PyDict_GetItem(dict, nxt_py_headers_str); in nxt_py_asgi_http_response_start() 317 if (headers != NULL) { in nxt_py_asgi_http_response_start() 318 res = nxt_py_asgi_enum_headers(headers, nxt_py_asgi_calc_size, in nxt_py_asgi_http_response_start() 338 if (headers != NULL) { in nxt_py_asgi_http_response_start() 339 res = nxt_py_asgi_enum_headers(headers, nxt_py_asgi_add_field, in nxt_py_asgi_http_response_start()
|
H A D | nxt_python_asgi.c | 645 PyObject *headers, *header; in nxt_py_asgi_create_http_scope() local 662 headers = NULL; in nxt_py_asgi_create_http_scope() 764 headers = PyTuple_New(r->fields_count); in nxt_py_asgi_create_http_scope() 765 if (nxt_slow_path(headers == NULL)) { in nxt_py_asgi_create_http_scope() 779 PyTuple_SET_ITEM(headers, i, header); in nxt_py_asgi_create_http_scope() 797 SET_ITEM(scope, headers, headers) in nxt_py_asgi_create_http_scope() 798 Py_DECREF(headers); in nxt_py_asgi_create_http_scope() 805 Py_XDECREF(headers); in nxt_py_asgi_create_http_scope() 1220 nxt_py_asgi_enum_headers(PyObject *headers, nxt_py_asgi_enum_header_cb cb, in nxt_py_asgi_enum_headers() argument 1226 iter = PyObject_GetIter(headers); in nxt_py_asgi_enum_headers()
|
H A D | nxt_python_asgi.h | 39 PyObject *nxt_py_asgi_enum_headers(PyObject *headers,
|
/unit/src/nodejs/unit-http/ |
H A D | unit.cpp | 586 napi_value headers, raw_headers; in create_headers() local 592 headers = create_object(); in create_headers() 601 append_header(r->fields + i, headers, raw_headers, i); in create_headers() 604 set_named_property(request, "headers", headers); in create_headers() 627 Unit::append_header(nxt_unit_field_t *f, napi_value headers, in append_header() argument 642 vstr = set_named_property(headers, name, f->value, f->value_length); in append_header() 798 napi_value this_arg, headers, keys, name, value, array_val; in response_send_headers() local 821 headers = argv[1]; in response_send_headers() 835 keys = napi.get_property_names(headers); in response_send_headers() 843 array_entry = napi.get_property(headers, name); in response_send_headers()
|
/unit/src/wasm-wasi-component/src/ |
H A D | lib.rs | 392 response.headers().len().try_into().unwrap(), in send_response() 394 .headers() in send_response() 401 for (k, v) in response.headers() { in send_response() 529 fn init_response(&mut self, status: u16, headers: u32, headers_size: u32) { in init_response() 534 headers, in init_response()
|
/unit/src/java/javax/websocket/ |
H A D | ClientEndpointConfig.java | 124 public void beforeRequest(Map<String, List<String>> headers) { in beforeRequest() argument
|