Home
last modified time | relevance | path

Searched refs:segments (Results 1 – 5 of 5) sorted by relevance

/unit/src/java/nginx/unit/websocket/server/
H A DUriTemplate.java40 private final List<Segment> segments = new ArrayList<>(); field in UriTemplate
55 String[] segments = path.split("/", -1); in UriTemplate() local
59 for (int i = 0; i < segments.length; i++) { in UriTemplate()
60 String segment = segments[i]; in UriTemplate()
62 if (i == 0 || (i == segments.length - 1 && paramCount == 0)) { in UriTemplate()
94 this.segments.add(new Segment(index, segment)); in UriTemplate()
114 Iterator<Segment> targetSegments = segments.iterator(); in match()
144 return segments.size(); in getSegmentCount()
154 return segments; in getSegments()
H A DLocalStrings.properties30 uriTemplate.emptySegment=The path [{0}] contains one or more empty segments which are is not permit…
/unit/src/
H A Dnxt_http_route.c1375 nxt_str_t segments[3]; in nxt_http_pass_find() local
1383 return nxt_router_application_init(rtcf, &segments[1], &segments[2], in nxt_http_pass_find()
1387 if (segments[2].length == 0) { in nxt_http_pass_find()
1424 segments->length = p - rest.start; in nxt_http_pass_segments()
1425 segments->start = rest.start; in nxt_http_pass_segments()
1427 rest.length -= segments->length + 1; in nxt_http_pass_segments()
1432 *segments = rest; in nxt_http_pass_segments()
1435 if (segments->length == 0) { in nxt_http_pass_segments()
1439 p = nxt_decode_uri(segments->start, segments->start, segments->length); in nxt_http_pass_segments()
1444 segments->length = p - segments->start; in nxt_http_pass_segments()
[all …]
H A Dnxt_conf_validation.c1532 nxt_str_t segments[3]; in nxt_conf_vldt_pass() local
1538 ret = nxt_http_pass_segments(vldt->pool, &pass, segments, 3); in nxt_conf_vldt_pass()
1549 if (nxt_str_eq(&segments[0], "applications", 12)) { in nxt_conf_vldt_pass()
1551 if (segments[1].length == 0) { in nxt_conf_vldt_pass()
1561 value = nxt_conf_get_object_member(value, &segments[1], NULL); in nxt_conf_vldt_pass()
1567 if (segments[2].length > 0) { in nxt_conf_vldt_pass()
1584 if (nxt_str_eq(&segments[0], "upstreams", 9)) { in nxt_conf_vldt_pass()
1586 if (segments[1].length == 0 || segments[2].length != 0) { in nxt_conf_vldt_pass()
1605 if (nxt_str_eq(&segments[0], "routes", 6)) { in nxt_conf_vldt_pass()
1607 if (segments[2].length != 0) { in nxt_conf_vldt_pass()
[all …]
H A Dnxt_http.h350 nxt_str_t *segments, nxt_uint_t n);