Home
last modified time | relevance | path

Searched refs:host (Results 1 – 19 of 19) sorted by relevance

/unit/test/
H A Dtest_routing.py37 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 Dtest_static_chroot.py32 def get_custom(self, uri, host): argument
33 return self.get(url=uri, headers={'Host': host, 'Connection': 'close'})[
H A Dtest_tls_sni.py137 def check_cert(self, host, expect): argument
140 'Host': host,
H A Dtest_variables.py55 def check_host(host, status=208): argument
57 self.get(headers={'Host': host, 'Connection': 'close'})[
/unit/src/
H A Dnxt_http_request.c84 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()
586 if (r->host.length != 0) { in nxt_http_application_handler()
[all …]
H A Dnxt_clone.h14 nxt_int_t host; member
H A Dnxt_clone.c161 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 Dnxt_http_route.c44 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 Dnxt_http.h143 nxt_str_t host; member
H A Dnxt_http_variables.c160 *str = r->host; in nxt_http_var_host()
H A Dnxt_conf_validation.c2831 nxt_int_t host; member
2846 offsetof(nxt_conf_vldt_clone_procmap_conf_t, host),
2866 procmap.host = -1; in nxt_conf_vldt_clone_procmap()
2882 if (procmap.host == -1) { in nxt_conf_vldt_clone_procmap()
H A Dnxt_isolation.c282 offsetof(nxt_clone_map_entry_t, host), in nxt_isolation_credential_map()
/unit/src/java/
H A Dnxt_jni_Request.c600 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 DWsWebSocketContainer.java220 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 DLocalStrings.properties139 wsWebSocketContainer.pathNoHost=No host was specified in URI
/unit/src/nodejs/unit-http/
H A Dwebsocket_request.js116 this.host = request.headers['host'];
117 if (!this.host) {
/unit/src/test/
H A Dnxt_clone_test.c591 map->map[i].host = nxt_conf_get_number(value); in nxt_clone_test_parse_map()
/unit/src/java/nginx/unit/
H A DRequest.java470 String host = getHeader("Host"); in getRequestURL() local
472 StringBuffer res = new StringBuffer("http://" + host + uri); in getRequestURL()
/unit/
H A DCHANGES31 *) Bugfix: when isolated PID numbers reach the prototype process host
320 enables loading all extensions from the host system.
337 *) Feature: the $host variable contains a normalized "Host" request