/unit/test/ |
H A D | test_routing.py | 37 def host(self, host, status): member in TestRouting 146 self.host('example', 200) 147 self.host('www.example', 404) 148 self.host('example.com', 404) 149 self.host('exampl', 404) 564 self.host('127.0.0.1', 200) 570 self.host('[::1]', 200) 607 self.host('', 200) 882 self.host('Localhost', 200) 885 self.host('host', 404) [all …]
|
H A D | test_variables.py | 55 def check_host(host, status=208): argument 57 self.get(headers={'Host': host, 'Connection': 'close'})[
|
H A D | test_static_chroot.py | 32 def get_custom(self, uri, host): argument 33 return self.get(url=uri, headers={'Host': host, 'Connection': 'close'})[
|
H A D | test_tls_sni.py | 137 def check_cert(self, host, expect): argument 140 'Host': host,
|
/unit/src/ |
H A D | nxt_isolation.c | 282 offsetof(nxt_clone_map_entry_t, host), in nxt_isolation_credential_map()
|
H A D | nxt_http_request.c | 84 nxt_str_t host; in nxt_http_request_host() local 93 host.length = field->value_length; in nxt_http_request_host() 94 host.start = field->value; in nxt_http_request_host() 99 r->host = host; in nxt_http_request_host() 119 dot_pos = host->length; in nxt_http_validate_host() 120 host_length = host->length; in nxt_http_validate_host() 122 h = host->start; in nxt_http_validate_host() 127 for (i = 0; i < host->length; i++) { in nxt_http_validate_host() 184 host->length = host_length; in nxt_http_validate_host() 584 if (r->host.length != 0) { in nxt_http_application_handler() [all …]
|
H A D | nxt_conf_validation.c | 2826 nxt_int_t host; member 2841 offsetof(nxt_conf_vldt_clone_procmap_conf_t, host), 2861 procmap.host = -1; in nxt_conf_vldt_clone_procmap() 2877 if (procmap.host == -1) { in nxt_conf_vldt_clone_procmap()
|
H A D | nxt_http_route.c | 44 nxt_conf_value_t *host; member 303 offsetof(nxt_http_route_match_conf_t, host), 463 if (mtcf.host != NULL) { in nxt_http_route_match_create() 464 rule = nxt_http_route_rule_create(task, mp, mtcf.host, 1, in nxt_http_route_match_create() 471 rule->u.offset = offsetof(nxt_http_request_t, host); in nxt_http_route_match_create()
|
H A D | nxt_http_variables.c | 160 *str = r->host; in nxt_http_var_host()
|
H A D | nxt_clone.c | 161 map->map[i].host, map->map[i].size); in nxt_clone_credential_map_set() 280 id = map->map[0].host; in nxt_clone_vldt_credential_uidmap() 347 if (nxt_slow_path((nxt_gid_t) m.host != nxt_egid)) { in nxt_clone_vldt_credential_gidmap() 350 "(gid %d) into child namespaces.", m.host, nxt_egid); in nxt_clone_vldt_credential_gidmap()
|
H A D | nxt_http.h | 143 nxt_str_t host; member
|
H A D | nxt_clone.h | 14 nxt_int_t host; member
|
/unit/ |
H A D | CHANGES | 281 enables loading all extensions from the host system. 298 *) Feature: the $host variable contains a normalized "Host" request
|
/unit/src/test/ |
H A D | nxt_clone_test.c | 591 map->map[i].host = nxt_conf_get_number(value); in nxt_clone_test_parse_map()
|
/unit/src/nodejs/unit-http/ |
H A D | websocket_request.js | 116 this.host = request.headers['host']; 117 if (!this.host) {
|
/unit/src/java/ |
H A D | nxt_jni_Request.c | 600 char *host, *colon; in nxt_java_Request_getServerName() local 609 host = nxt_unit_sptr_get(&f->value); in nxt_java_Request_getServerName() 611 colon = memchr(host, ':', f->value_length); in nxt_java_Request_getServerName() 614 colon = host + f->value_length; in nxt_java_Request_getServerName() 617 return nxt_java_newString(env, host, colon - host); in nxt_java_Request_getServerName() 628 char *host, *colon, tmp; in nxt_java_Request_getServerPort() local 637 host = nxt_unit_sptr_get(&f->value); in nxt_java_Request_getServerPort() 639 colon = memchr(host, ':', f->value_length); in nxt_java_Request_getServerPort() 645 tmp = host[f->value_length]; in nxt_java_Request_getServerPort() 647 host[f->value_length] = '\0'; in nxt_java_Request_getServerPort() [all …]
|
/unit/src/java/nginx/unit/websocket/ |
H A D | WsWebSocketContainer.java | 220 String host = path.getHost(); in connectToServerRecursive() local 221 if (host == null) { in connectToServerRecursive() 260 sa = new InetSocketAddress(host, port); in connectToServerRecursive() 262 proxyConnect = createProxyRequest(host, port); in connectToServerRecursive() 332 SSLEngine sslEngine = createSSLEngine(userProperties, host, port); in connectToServerRecursive() 563 private static ByteBuffer createProxyRequest(String host, int port) { in createProxyRequest() argument 566 request.append(host); in createProxyRequest() 571 request.append(host); in createProxyRequest() 648 hostValues.add(host); in createRequestHeaders() 650 hostValues.add(host + ':' + port); in createRequestHeaders() [all …]
|
H A D | LocalStrings.properties | 139 wsWebSocketContainer.pathNoHost=No host was specified in URI
|
/unit/src/java/nginx/unit/ |
H A D | Request.java | 470 String host = getHeader("Host"); in getRequestURL() local 472 StringBuffer res = new StringBuffer("http://" + host + uri); in getRequestURL()
|