Home
last modified time | relevance | path

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

/unit/src/
H A Dnxt_job_resolve.c14 u_char *host; in nxt_job_resolve() local
31 host = buf; in nxt_job_resolve()
34 host = nxt_mp_alloc(jbr->job.mem_pool, length); in nxt_job_resolve()
35 if (nxt_slow_path(host == NULL)) { in nxt_job_resolve()
40 nxt_cpystrn(host, jbr->name.start, length); in nxt_job_resolve()
45 err = getaddrinfo((char *) host, NULL, &hint, &res); in nxt_job_resolve()
50 host, err, gai_strerror(err)); in nxt_job_resolve()
127 if (host != buf) { in nxt_job_resolve()
128 nxt_mp_free(jbr->job.mem_pool, host); in nxt_job_resolve()
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()
584 if (r->host.length != 0) { in nxt_http_application_handler()
[all …]
H A Dnxt_sockaddr.c1072 u_char *p, *host; in nxt_job_sockaddr_inet_parse() local
1082 host = jbs->addr.start; in nxt_job_sockaddr_inet_parse()
1084 p = nxt_memchr(host, ':', length); in nxt_job_sockaddr_inet_parse()
1090 port = nxt_int_parse(host, length); in nxt_job_sockaddr_inet_parse()
1104 addr = nxt_inet_addr(host, length); in nxt_job_sockaddr_inet_parse()
1108 jbs->resolve.name.start = host; in nxt_job_sockaddr_inet_parse()
1123 length = (host + length) - p; in nxt_job_sockaddr_inet_parse()
1132 length = (p - 1) - host; in nxt_job_sockaddr_inet_parse()
1134 if (length != 1 || host[0] != '*') { in nxt_job_sockaddr_inet_parse()
1135 addr = nxt_inet_addr(host, length); in nxt_job_sockaddr_inet_parse()
[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_variables.c90 *str = r->host; in nxt_http_var_host()
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_conf_validation.c2799 nxt_int_t host; member
2814 offsetof(nxt_conf_vldt_clone_procmap_conf_t, host),
2834 procmap.host = -1; in nxt_conf_vldt_clone_procmap()
2850 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/test/
H A Dtest_routing.py37 def host(self, host, status): argument
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_variables.py50 def check_host(host, status=208): argument
52 self.get(headers={'Host': host, 'Connection': 'close'})[
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,
/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 DCHANGES281 enables loading all extensions from the host system.
298 *) Feature: the $host variable contains a normalized "Host" request