/unit/src/java/nginx/unit/websocket/server/ |
H A D | WsHandshakeRequest.java | 149 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 D | app.java | 82 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 D | app.java | 87 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 D | request.go | 44 uri := GoStringN(&req.target, C.int(req.target_length)) 46 URL, err := url.ParseRequestURI(uri) 57 RequestURI: uri,
|
/unit/test/ |
H A D | test_rewrite.py | 27 def set_rewrite(rewrite, uri): argument 34 {"match": {"uri": uri}, "action": {"return": 200}},
|
H A D | test_variables.py | 115 def check_uri(uri, expect=None): argument 116 expect = uri if expect is None else expect 120 assert client.get(url=uri)['status'] == 200 274 def check_vars(uri, expect): argument 278 assert client.get(url=uri)['status'] == 200
|
H A D | test_static_chroot.py | 36 def get_custom(uri, host): argument 37 return client.get(url=uri, headers={'Host': host, 'Connection': 'close'})[
|
H A D | test_settings.py | 454 def wait_for_request_log(status, uri, route): argument 455 assert client.get(url=uri)['status'] == status 456 assert wait_for_record(template_req_line(uri)) is not None
|
/unit/src/java/nginx/unit/ |
H A D | DynamicPathRequest.java | 10 public void setRequestURI(String uri); in setRequestURI() argument
|
H A D | IncludeRequestWrapper.java | 66 public void setRequestURI(String uri) in setRequestURI() argument 68 request_.setAttribute_(RequestDispatcher.INCLUDE_REQUEST_URI, uri); in setRequestURI()
|
H A D | ForwardRequestWrapper.java | 103 public void setRequestURI(String uri) in setRequestURI() argument 105 request_.setRequestURI(uri); in setRequestURI()
|
H A D | Request.java | 459 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 D | Response.java | 434 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 D | Context.java | 941 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/java/nginx/unit/websocket/ |
H A D | WsWebSocketContainer.java | 717 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 D | README.md | 89 echo '{"match":{"uri":"/wp-admin/*"},"action":{"return":403}}' | unitc INSERT /config/routes
|
/unit/src/ |
H A D | nxt_http_route.c | 45 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 D | CHANGES | 15 *) Bugfix: ensure that $uri variable is not cached. 73 *) Change: removed $uri auto-append for "share" when loading 518 *) Feature: support for percent-encoding in the "uri" and "arguments"
|
/unit/docs/ |
H A D | unit-openapi.yaml | 4909 uri: "~^/data/www/.*\\.php(/.*)?$" 4912 share: "/www/data$uri" 5863 uri:
|