Home
last modified time | relevance | path

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

/unit/src/java/nginx/unit/websocket/server/
H A DWsHandshakeRequest.java149 StringBuffer uri = new StringBuffer(); in buildRequestUri() local
158 uri.append("ws"); in buildRequestUri()
160 uri.append("wss"); in buildRequestUri()
167 uri.append("://"); in buildRequestUri()
168 uri.append(req.getServerName()); in buildRequestUri()
172 uri.append(':'); in buildRequestUri()
173 uri.append(port); in buildRequestUri()
176 uri.append(req.getRequestURI()); in buildRequestUri()
179 uri.append("?"); in buildRequestUri()
180 uri.append(req.getQueryString()); in buildRequestUri()
[all …]
/unit/test/java/include/
H A Dapp.java82 String uri = request.getParameter("uri"); in doGet() local
84 if (uri != null && request.getDispatcherType() != DispatcherType.INCLUDE) { in doGet()
85 response.addHeader("X-Include", "" + uri); in doGet()
89 RequestDispatcher d = getRequestDispatcher(request, uri); in doGet()
/unit/test/java/forward/
H A Dapp.java87 String uri = request.getParameter("uri"); in doGet() local
89 if (uri != null && request.getDispatcherType() != DispatcherType.FORWARD) { in doGet()
90 response.addHeader("X-Forward-To", "" + uri); in doGet()
94 RequestDispatcher d = getRequestDispatcher(request, uri); in doGet()
/unit/go/
H A Drequest.go44 uri := GoStringN(&req.target, C.int(req.target_length))
46 URL, err := url.ParseRequestURI(uri)
57 RequestURI: uri,
/unit/test/
H A Dtest_rewrite.py28 def set_rewrite(rewrite, uri): argument
35 {"match": {"uri": uri}, "action": {"return": 200}},
H A Dtest_variables.py115 def check_uri(uri, expect=None): argument
116 expect = uri if expect is None else expect
120 assert client.get(url=uri)['status'] == 200
294 def check_vars(uri, expect): argument
298 assert client.get(url=uri)['status'] == 200
H A Dtest_static_chroot.py38 def get_custom(uri, host): argument
39 return client.get(url=uri, headers={'Host': host, 'Connection': 'close'})[
H A Dtest_settings.py455 def wait_for_request_log(status, uri, route): argument
456 assert client.get(url=uri)['status'] == status
457 assert wait_for_record(template_req_line(uri)) is not None
H A Dtest_njs.py101 def check_rewrite(rewrite, uri): argument
/unit/src/java/nginx/unit/
H A DDynamicPathRequest.java10 public void setRequestURI(String uri); in setRequestURI() argument
H A DIncludeRequestWrapper.java66 public void setRequestURI(String uri) in setRequestURI() argument
68 request_.setAttribute_(RequestDispatcher.INCLUDE_REQUEST_URI, uri); in setRequestURI()
H A DForwardRequestWrapper.java103 public void setRequestURI(String uri) in setRequestURI() argument
105 request_.setRequestURI(uri); in setRequestURI()
H A DRequest.java459 public void setRequestURI(String uri) in setRequestURI() argument
461 trace("setRequestURI: " + uri); in setRequestURI()
463 request_uri = uri; in setRequestURI()
471 String uri = getRequestURI(); in getRequestURL() local
472 StringBuffer res = new StringBuffer("http://" + host + uri); in getRequestURL()
1042 URI uri = new URI(getRequestURI()); in getRequestDispatcher() local
1043 uri = uri.resolve(path); in getRequestDispatcher()
1045 return context.getRequestDispatcher(uri); in getRequestDispatcher()
H A DResponse.java434 URI uri = new URI(location); in sendRedirect() local
436 if (!uri.isAbsolute()) { in sendRedirect()
438 uri = req_uri.resolve(uri); in sendRedirect()
440 location = uri.toString(); in sendRedirect()
H A DContext.java941 URI uri = new URI(req.getRequestURI()); in service() local
942 String path = uri.getPath(); in service()
1074 URI uri; in handleError() local
1077 uri = new URI(context_path_ + location); in handleError()
1079 uri = new URI(req_uri).resolve(location); in handleError()
1082 req.setRequestURI(uri.getRawPath()); in handleError()
2608 public URIRequestDispatcher(URI uri)
2610 uri_ = uri;
2613 public URIRequestDispatcher(String uri)
2616 uri_ = new URI(uri);
[all …]
/unit/src/wasm-wasi-component/src/
H A Dlib.rs353 let uri = http::Uri::builder() in to_request_builder()
359 request = request.uri(uri); in to_request_builder()
/unit/src/java/nginx/unit/websocket/
H A DWsWebSocketContainer.java717 private static ByteBuffer createRequest(URI uri, Map<String,List<String>> reqHeaders) { in createRequest() argument
722 if (null == uri.getPath() || "".equals(uri.getPath())) { in createRequest()
725 result.put(uri.getRawPath().getBytes(StandardCharsets.ISO_8859_1)); in createRequest()
727 String query = uri.getRawQuery(); in createRequest()
/unit/tools/
H A DREADME.md95 echo '{"match":{"uri":"/wp-admin/*"},"action":{"return":403}}' | unitc INSERT /config/routes
/unit/src/
H A Dnxt_http_route.c45 nxt_conf_value_t *uri; member
309 offsetof(nxt_http_route_match_conf_t, uri),
477 if (mtcf.uri != NULL) { in nxt_http_route_match_create()
478 rule = nxt_http_route_rule_create(task, mp, mtcf.uri, 1, in nxt_http_route_match_create()
/unit/
H A DCHANGES95 *) Bugfix: ensure that $uri variable is not cached.
153 *) Change: removed $uri auto-append for "share" when loading
598 *) Feature: support for percent-encoding in the "uri" and "arguments"
/unit/docs/
H A Dunit-openapi.yaml4909 uri: "~^/data/www/.*\\.php(/.*)?$"
4912 share: "/www/data$uri"
5863 uri: