Home
last modified time | relevance | path

Searched refs:response (Results 1 – 25 of 51) sorted by relevance

123

/unit/test/java/content_type/
H A Dapp.java21 response.setHeader("X-Character-Encoding", response.getCharacterEncoding()); in doGet()
22 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
28 response.setHeader("X-Character-Encoding", response.getCharacterEncoding()); in doGet()
29 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
36 response.setHeader("X-Character-Encoding", response.getCharacterEncoding()); in doGet()
37 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
45 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
53 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
61 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
72 response.setHeader("X-Content-Type", response.getContentType()); in doGet()
[all …]
/unit/test/java/header/
H A Dapp.java16 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
19 response.setHeader("X-Set-Utf8-Value", "тест"); in doGet()
20 response.setHeader("X-Set-Utf8-Name-Имя", "x"); in doGet()
22 response.addHeader("X-Add-Utf8-Value", "тест"); in doGet()
23 response.addHeader("X-Add-Utf8-Name-Имя", "y"); in doGet()
25 response.addHeader("X-Add-Test", "v1"); in doGet()
26 response.addHeader("X-Add-Test", null); in doGet()
28 response.setHeader("X-Set-Test1", "v1"); in doGet()
29 response.setHeader("X-Set-Test1", null); in doGet()
31 response.setHeader("X-Set-Test2", "v1"); in doGet()
[all …]
/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()
29 response.setContentType("text/plain; charset=utf-8"); in doGet()
31 PrintWriter out = response.getWriter(); in doGet()
37 response.addHeader("X-Real-Path", "" + ctx.getRealPath(path)); in doGet()
38 response.addHeader("X-Resource", "" + ctx.getResource(path)); in doGet()
42 response.addHeader("X-Resource-Paths", "" + paths); in doGet()
[all …]
/unit/test/java/forward/
H A Dapp.java64 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
69 response.addHeader("X-" + dtype + "-Id", id); in doGet()
70 response.addHeader("X-" + dtype + "-Request-URI", "" + request.getRequestURI()); in doGet()
71 response.addHeader("X-" + dtype + "-Servlet-Path", "" + request.getServletPath()); in doGet()
72 response.addHeader("X-" + dtype + "-Path-Info", "" + request.getPathInfo()); in doGet()
76 response.setContentType("text/plain; charset=utf-8"); in doGet()
84 PrintWriter out = response.getWriter(); in doGet()
90 response.addHeader("X-Forward-To", "" + uri); in doGet()
104 response.addHeader("X-Exception", "" + e); in doGet()
107 response.addHeader("X-After-Forwarding", "you-should-not-see-this"); in doGet()
[all …]
/unit/test/java/filter/
H A Dapp.java28 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) in doFilter() argument
31 response.getOutputStream().println("Extra Info"); in doFilter()
32 response.setCharacterEncoding("utf-8"); in doFilter()
34 ((HttpServletResponse) response).addHeader("X-Filter-Before", "1"); in doFilter()
36 chain.doFilter(request, response); in doFilter()
38 ((HttpServletResponse) response).setHeader("X-Filter-After", "1"); in doFilter()
48 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
51 response.getOutputStream().println("This is servlet response"); in doGet()
52 response.setHeader("X-Filter-After", "0"); in doGet()
/unit/test/java/welcome_files/
H A Dapp.java26 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) in doFilter() argument
29 ((HttpServletResponse) response).addHeader("X-JSP-Filter", "1"); in doFilter()
31 chain.doFilter(request, response); in doFilter()
45 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) in doFilter() argument
48 ((HttpServletResponse) response).addHeader("X-TXT-Filter", "1"); in doFilter()
50 chain.doFilter(request, response); in doFilter()
58 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
61 response.addHeader("X-App-Servlet", "1"); in doGet()
62 response.setContentType("text/plain; charset=utf-8"); in doGet()
64 PrintWriter out = response.getWriter(); in doGet()
/unit/src/java/nginx/unit/websocket/
H A DWsFrameClient.java39 private volatile ByteBuffer response; field in WsFrameClient
44 this.response = response; in WsFrameClient()
66 while (response.hasRemaining()) { in processSocketRead()
87 int orgLimit = response.limit(); in processSocketRead()
88 response.limit(response.position() + toCopy); in processSocketRead()
89 inputBuffer.put(response); in processSocketRead()
90 response.limit(orgLimit); in processSocketRead()
97 response.clear(); in processSocketRead()
162 response.flip(); in completed()
170 response = ByteBuffer in failed()
[all …]
/unit/test/java/url_pattern/
H A Dapp.java23 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
26 response.addHeader("X-Id", id); in doGet()
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()
31 response.setContentType("text/plain; charset=utf-8"); in doGet()
33 PrintWriter out = response.getWriter(); in doGet()
/unit/test/java/include/
H A Dapp.java65 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
70 response.addHeader("X-" + dtype + "-Id", id); in doGet()
71 response.addHeader("X-" + dtype + "-Request-URI", "" + request.getRequestURI()); in doGet()
72 response.addHeader("X-" + dtype + "-Servlet-Path", "" + request.getServletPath()); in doGet()
73 response.addHeader("X-" + dtype + "-Path-Info", "" + request.getPathInfo()); in doGet()
77 response.setContentType("text/plain; charset=utf-8"); in doGet()
79 PrintWriter out = response.getWriter(); in doGet()
85 response.addHeader("X-Include", "" + uri); in doGet()
99 response.addHeader("X-Exception", "" + e); in doGet()
103 response.addHeader("X-After-Include", "you-should-see-this"); in doGet()
[all …]
/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()
32 response.addHeader("X-Param-Names", names); in doGet()
40 response.addHeader("X-Param-Values", values); in doGet()
48 response.addHeader("X-Param-Map", map); in doGet()
/unit/test/java/session/
H A Dapp.java14 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
22 response.addHeader("X-Var-1", "null"); in doGet()
24 response.addHeader("X-Var-1", old_var1); in doGet()
27 response.addHeader("X-Session-Id", s.getId()); in doGet()
28 response.addHeader("X-Session-New", "" + s.isNew()); in doGet()
/unit/test/java/session_listeners/
H A Dapp.java67 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
73 response.addHeader("X-Session-Id", s.getId()); in doGet()
74 response.addHeader("X-Session-Created", session_created); in doGet()
75 response.addHeader("X-Session-Destroyed", session_destroyed); in doGet()
76 response.addHeader("X-Attr-Added", attribute_added); in doGet()
77 response.addHeader("X-Attr-Removed", attribute_removed); in doGet()
78 response.addHeader("X-Attr-Replaced", attribute_replaced); 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/request_listeners/
H A Dapp.java66 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
73 response.addHeader("X-Request-Initialized", request_initialized); in doGet()
74 response.addHeader("X-Request-Destroyed", request_destroyed); in doGet()
75 response.addHeader("X-Attr-Added", attribute_added); in doGet()
76 response.addHeader("X-Attr-Removed", attribute_removed); in doGet()
77 response.addHeader("X-Attr-Replaced", attribute_replaced); in doGet()
/unit/src/java/nginx/unit/websocket/server/
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()
59 HttpServletResponse resp = (HttpServletResponse) response; in doFilter()
74 chain.doFilter(request, response); in doFilter()
/unit/test/java/session_inactive/
H A Dapp.java14 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
29 response.addHeader("X-Session-Id", s.getId()); in doGet()
30 response.addDateHeader("X-Session-Last-Access-Time", s.getLastAccessedTime()); in doGet()
31 response.addIntHeader("X-Session-Interval", s.getMaxInactiveInterval()); in doGet()
/unit/test/java/mirror/
H A Dapp.java15 public void doPost(HttpServletRequest request, HttpServletResponse response) in doPost() argument
29 response.setHeader("Content-Length", dataLength); in doPost()
31 response.setContentType("text/html"); in doPost()
33 PrintWriter out = response.getWriter(); in doPost()
/unit/test/java/header_date/
H A Dapp.java16 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
19 response.setDateHeader("X-Set-Date", 1000); in doGet()
20 response.addDateHeader("X-Get-Date", request.getDateHeader("X-Header")); in doGet()
/unit/test/java/header_int/
H A Dapp.java16 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
19 response.setIntHeader("X-Set-Int", 1); in doGet()
20 response.addHeader("X-Get-Int", Integer.toString(request.getIntHeader("X-Header"))); in doGet()
/unit/go/
H A Dresponse.go17 type response struct { struct
24 func (r *response) Header() http.Header { argument
28 func (r *response) Write(p []byte) (n int, err error) { argument
55 func (r *response) WriteHeader(code int) { argument
90 func (r *response) Flush() { argument
/unit/src/nodejs/unit-http/
H A Dwebsocket_request.js266 var response = this.httpRequest._response;
267 response.statusCode = 101;
292 response.setHeader('Origin', allowedOrigin);
295 response.setHeader('Sec-WebSocket-Origin', allowedOrigin);
413 response.addHeader('Set-Cookie', cookieParts.join(';'));
440 response._sendHeaders();
460 var response = this.httpRequest._response;
462 response.statusCode = status;
466 response.addHeader('X-WebSocket-Reject-Reason', reason);
473 response += (sanitizedKey + ': ' + sanitizedValue + '\r\n');
[all …]
/unit/test/java/cookies/
H A Dapp.java15 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
22 response.addHeader("X-Cookie-1", c.getValue()); in doGet()
25 response.addHeader("X-Cookie-2", c.getValue()); in doGet()
/unit/test/java/jsp/
H A Dindex.jsp1 <%@ page contentType="text/plain"%>This is plain text response for "<%= request.getMethod() %> <%= …
2 <% response.addHeader("X-Unit-JSP", "ok"); %>
/unit/test/java/query_string/
H A Dapp.java15 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
18 response.addHeader("X-Query-String", "" + request.getQueryString()); in doGet()
/unit/test/java/get_header/
H A Dapp.java16 public void doGet(HttpServletRequest request, HttpServletResponse response) in doGet() argument
19 response.addHeader("X-Reply", request.getHeader("X-Header")); in doGet()

123