Home
last modified time | relevance | path

Searched refs:request (Results 1 – 25 of 89) sorted by relevance

1234

/unit/test/java/include/
H A Dapp.java47 String disp = request.getParameter("disp"); in getRequestDispatcher()
50 return request.getServletContext().getRequestDispatcher(str); in getRequestDispatcher()
54 return request.getServletContext().getNamedDispatcher(str); in getRequestDispatcher()
58 return request.getRequestDispatcher(str); in getRequestDispatcher()
68 String dtype = "" + request.getDispatcherType(); in doGet()
82 String uri = request.getParameter("uri"); in doGet()
113 out.println("RequestURI: " + request.getRequestURI()); in doGet()
114 out.println("ServletPath: " + request.getServletPath()); in doGet()
115 out.println("PathInfo: " + request.getPathInfo()); in doGet()
117 out.println("QueryString: " + request.getQueryString()); in doGet()
[all …]
/unit/test/java/forward/
H A Dapp.java46 String disp = request.getParameter("disp"); in getRequestDispatcher()
49 return request.getServletContext().getRequestDispatcher(str); in getRequestDispatcher()
53 return request.getServletContext().getNamedDispatcher(str); in getRequestDispatcher()
57 return request.getRequestDispatcher(str); in getRequestDispatcher()
67 String dtype = "" + request.getDispatcherType(); in doGet()
78 Map<String, String[]> pmap = request.getParameterMap(); in doGet()
87 String uri = request.getParameter("uri"); in doGet()
123 out.println("RequestURI: " + request.getRequestURI()); in doGet()
124 out.println("ServletPath: " + request.getServletPath()); in doGet()
125 out.println("PathInfo: " + request.getPathInfo()); in doGet()
[all …]
/unit/src/java/nginx/unit/websocket/server/
H A DWsHandshakeRequest.java50 private volatile HttpServletRequest request; field in WsHandshakeRequest
55 this.request = request; in WsHandshakeRequest()
57 queryString = request.getQueryString(); in WsHandshakeRequest()
58 userPrincipal = request.getUserPrincipal(); in WsHandshakeRequest()
59 httpSession = request.getSession(false); in WsHandshakeRequest()
60 requestUri = buildRequestUri(request); in WsHandshakeRequest()
81 Enumeration<String> headerNames = request.getHeaderNames(); in WsHandshakeRequest()
119 if (request == null) { in isUserInRole()
123 return request.isUserInRole(role); in isUserInRole()
140 request = null; in finished()
[all …]
H A DDefaultServerEndpointConfigurator.java51 for (String request : requested) { in getNegotiatedSubprotocol()
52 if (supported.contains(request)) { in getNegotiatedSubprotocol()
53 return request; in getNegotiatedSubprotocol()
68 for (Extension request : requested) { in getNegotiatedExtensions()
69 if (installedNames.contains(request.getName())) { in getNegotiatedExtensions()
70 result.add(request); in getNegotiatedExtensions()
84 HandshakeRequest request, HandshakeResponse response) { in modifyHandshake() argument
H A DWsFilter.java47 public void doFilter(ServletRequest request, ServletResponse response, in doFilter() argument
52 !UpgradeUtil.isWebSocketUpgradeRequest(request, response)) { in doFilter()
53 chain.doFilter(request, response); in doFilter()
58 HttpServletRequest req = (HttpServletRequest) request; in doFilter()
74 chain.doFilter(request, response); in doFilter()
/unit/test/java/url_pattern/
H A Dapp.java23 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
27 response.addHeader("X-Request-URI", "" + request.getRequestURI()); in doGet()
28 response.addHeader("X-Servlet-Path", "" + request.getServletPath()); in doGet()
29 response.setHeader("X-Path-Info", "" + request.getPathInfo()); in doGet()
35 out.println("RequestURI: " + request.getRequestURI()); in doGet()
36 out.println("ServletPath: " + request.getServletPath()); in doGet()
37 out.println("PathInfo: " + request.getPathInfo()); in doGet()
/unit/test/java/get_params/
H A Dapp.java18 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
21 response.addHeader("X-Var-1", request.getParameter("var1")); in doGet()
22 response.addHeader("X-Var-2", "" + (request.getParameter("var2") != null)); in doGet()
23 response.addHeader("X-Var-3", "" + (request.getParameter("var3") != null)); in doGet()
24 response.addHeader("X-Var-4", request.getParameter("var4")); in doGet()
26 Enumeration<String> parameter_names = request.getParameterNames(); in doGet()
34 String[] parameter_values = request.getParameterValues("var4"); in doGet()
42 Map <String, String[]> parameter_map = request.getParameterMap(); in doGet()
/unit/test/java/path_translation/
H A Dapp.java20 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
23 response.addHeader("X-Request-URI", "" + request.getRequestURI()); in doGet()
24 response.addHeader("X-Servlet-Path", "" + request.getServletPath()); in doGet()
25 response.addHeader("X-Path-Info", "" + request.getPathInfo()); in doGet()
26 response.addHeader("X-Query-String", "" + request.getQueryString()); in doGet()
27 response.addHeader("X-Path-Translated", "" + request.getPathTranslated()); in doGet()
32 ServletContext ctx = request.getServletContext(); in doGet()
34 String path = request.getParameter("path"); in doGet()
/unit/test/java/content_type/
H A Dapp.java16 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
19 if (request.getServletPath().equals("/1")) { in doGet()
26 if (request.getServletPath().equals("/2")) { in doGet()
33 if (request.getServletPath().equals("/3")) { in doGet()
41 if (request.getServletPath().equals("/4")) { in doGet()
49 if (request.getServletPath().equals("/5")) { in doGet()
57 if (request.getServletPath().equals("/6")) { in doGet()
65 if (request.getServletPath().equals("/7")) { in doGet()
76 if (request.getServletPath().equals("/8")) { in doGet()
/unit/src/test/
H A Dnxt_http_parse_test.c40 nxt_str_t request; member
44 nxt_str_t *request, nxt_log_t *log);
51 nxt_str_t *request);
56 nxt_str_t *request, nxt_log_t *log);
565 rc = nxt_http_parse_test_run(&rp, &test->request); in nxt_http_parse_test()
637 buf.start = request->start; in nxt_http_parse_test_run()
638 buf.end = request->start + request->length; in nxt_http_parse_test_run()
664 name, request->length, n); in nxt_http_parse_test_bench()
666 buf.start = request->start; in nxt_http_parse_test_bench()
667 buf.end = request->start + request->length; in nxt_http_parse_test_bench()
[all …]
/unit/test/java/request_listeners/
H A Dapp.java66 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
69 request.setAttribute("var", request.getParameter("var1")); in doGet()
70 request.setAttribute("var", request.getParameter("var2")); in doGet()
71 request.setAttribute("var", request.getParameter("var3")); in doGet()
/unit/test/java/post_params/
H A Dapp.java15 public void doPost(HttpServletRequest request, HttpServletResponse response) in doPost() argument
18 response.addHeader("X-Var-1", request.getParameter("var1")); in doPost()
19 response.addHeader("X-Var-2", "" + (request.getParameter("var2") != null)); in doPost()
20 response.addHeader("X-Var-3", "" + (request.getParameter("var3") != null)); in doPost()
/unit/test/java/welcome_files/
H A Dapp.java26 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) in doFilter() argument
31 chain.doFilter(request, response); in doFilter()
45 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) in doFilter() argument
50 chain.doFilter(request, response); in doFilter()
58 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
/unit/test/java/session/
H A Dapp.java14 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
17 HttpSession s = request.getSession(); in doGet()
19 s.setAttribute("var1", request.getParameter("var1")); in doGet()
/unit/go/
H A Drequest.go21 type request struct { struct
27 func (r *request) Read(p []byte) (n int, err error) { argument
37 func (r *request) Close() error { argument
41 func new_request(c_req *C.nxt_unit_request_info_t) (r *request, err error) {
42 req := c_req.request
53 r = &request{
/unit/src/nodejs/unit-http/
H A Dwebsocket_server.js128 this.pendingRequests.forEach(function(request) { argument
130 request.reject(503); // HTTP 503 Service Unavailable
161 WebSocketServer.prototype.handleUpgrade = function(request, socket) { argument
162 var wsRequest = new WebSocketRequest(socket, request, this.config);
208 WebSocketServer.prototype.handleRequestResolved = function(request) { argument
209 var index = this.pendingRequests.indexOf(request);
H A Dwebsocket_router.js128 WebSocketRouter.prototype.handleRequest = function(request) { argument
129 var requestedProtocols = request.requestedProtocols;
141 if (handler.path.test(request.resourceURL.pathname)) {
145 var routerRequest = new WebSocketRouterRequest(request, requestedProtocol);
154 request.reject(404, 'No handler is available for the given request.');
H A Dwebsocket_request.js111 var request = this.httpRequest;
116 this.host = request.headers['host'];
121 this.key = request.headers['sec-websocket-key'];
126 this.webSocketVersion = parseInt(request.headers['sec-websocket-version'], 10);
147 this.origin = request.headers['origin'];
150 this.origin = request.headers['sec-websocket-origin'];
154 var protocolString = request.headers['sec-websocket-protocol'];
167 request.headers['x-forwarded-for']) {
169 this.remoteAddresses = request.headers['x-forwarded-for']
176 var extensionsString = request.headers['sec-websocket-extensions'];
[all …]
/unit/test/java/session_inactive/
H A Dapp.java14 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
17 HttpSession s = request.getSession(); in doGet()
20 String interval = request.getHeader("X-Interval"); in doGet()
/unit/test/node/loader/es_modules_websocket_indirect/
H A Dmodule.mjs17 wsServer.on('request', function(request) { argument
18 var connection = request.accept(null);
/unit/test/node/loader/es_modules_websocket/
H A Dapp.mjs17 wsServer.on('request', function(request) { argument
18 var connection = request.accept(null);
/unit/test/java/jsp/
H A Dindex.jsp1 …entType="text/plain"%>This is plain text response for "<%= request.getMethod() %> <%= request.getR…
/unit/test/java/filter/
H A Dapp.java28 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) in doFilter() argument
36 chain.doFilter(request, response); in doFilter()
48 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
/unit/test/node/websockets/mirror_fragmentation/
H A Dapp.js11 wsServer.on('request', function(request) { argument
13 var connection = request.accept(null);
/unit/src/java/nginx/unit/
H A DIncludeRequestWrapper.java24 public IncludeRequestWrapper(ServletRequest request) in IncludeRequestWrapper() argument
26 if (request instanceof Request) { in IncludeRequestWrapper()
27 request_ = (Request) request; in IncludeRequestWrapper()
29 request_ = (Request) request.getAttribute(Request.BARE); in IncludeRequestWrapper()

1234