Home
last modified time | relevance | path

Searched refs:location (Results 1 – 11 of 11) sorted by relevance

/unit/src/
H A Dnxt_http_return.c12 nxt_tstr_t *location; member
18 nxt_str_t location; member
26 const nxt_str_t *location);
54 if (acf->location == NULL) { in nxt_http_return_init()
88 if (conf->location == NULL) { in nxt_http_return()
134 nxt_tstr_query(task, r->tstr_query, conf->location, &ctx->location); in nxt_http_return()
152 const nxt_str_t *location) in nxt_http_return_encode() argument
156 if (nxt_is_complex_uri_encoded(location->start, location->length)) { in nxt_http_return_encode()
157 *encoded = *location; in nxt_http_return_encode()
162 encode = nxt_encode_complex_uri(NULL, location->start, location->length); in nxt_http_return_encode()
[all …]
H A Dnxt_controller.c2132 nxt_conf_value_t *value, *location; in nxt_controller_response() local
2211 location = nxt_conf_create_object(c->mem_pool, in nxt_controller_response()
2214 nxt_conf_set_member(value, &location_str, location, n); in nxt_controller_response()
2216 nxt_conf_set_member_integer(location, &offset_str, resp->offset, 0); in nxt_controller_response()
2219 nxt_conf_set_member_integer(location, &line_str, in nxt_controller_response()
2222 nxt_conf_set_member_integer(location, &column_str, in nxt_controller_response()
H A Dnxt_http.h228 nxt_conf_value_t *location; member
H A Dnxt_http_route.c594 offsetof(nxt_http_action_conf_t, location)
/unit/test/
H A Dtest_return.py94 def check_location(location, expect=None): argument
96 expect = location
99 {"return": 301, "location": location}, 'routes/0/action'
H A Dtest_variables.py37 def check_dollar(location, expect): argument
39 '"' + location + '"',
/unit/src/java/nginx/unit/
H A DIncludeResponseWrapper.java46 public void sendRedirect(String location) throws IOException in sendRedirect() argument
48 trace("sendRedirect: " + location); in sendRedirect()
H A DResponse.java425 public void sendRedirect(String location) throws IOException in sendRedirect() argument
427 trace("sendRedirect: " + location); in sendRedirect()
434 URI uri = new URI(location); in sendRedirect()
440 location = uri.toString(); in sendRedirect()
447 sendRedirect(req_info_ptr, location.getBytes(ISO_8859_1)); in sendRedirect()
450 private static native void sendRedirect(long req_info_ptr, byte[] location); in sendRedirect() argument
H A DContext.java1017 String location; in handleException() local
1023 if (location != null) { in handleException()
1031 handleError(location, req, resp); in handleException()
1049 String location; in handleStatusCode() local
1051 location = error2location_.get(code); in handleStatusCode()
1053 if (location != null) { in handleStatusCode()
1058 handleError(location, req, resp); in handleStatusCode()
1066 log("handleError: " + location); in handleError()
1076 if (location.startsWith("/")) { in handleError()
1077 uri = new URI(context_path_ + location); in handleError()
[all …]
/unit/src/java/
H A Dnxt_jni_Response.c625 static const char location[] = "Location"; in nxt_java_Response_sendRedirect() local
626 static const uint32_t location_len = sizeof(location) - 1; in nxt_java_Response_sendRedirect()
652 rc = nxt_java_response_set_header(req_info_ptr, location, location_len, in nxt_java_Response_sendRedirect()
/unit/
H A DCHANGES46 *) Feature: variables support in the "location" option of the "return"
49 *) Feature: support empty strings in the "location" option of the
415 *) Feature: a "return" action with optional "location" for immediate