Home
last modified time | relevance | path

Searched refs:w (Results 1 – 18 of 18) sorted by relevance

/unit/test/go/variables/
H A Dapp.go10 func handler(w http.ResponseWriter, r *http.Request) {
14 w.Header().Set("Request-Method", r.Method)
15 w.Header().Set("Request-Uri", r.RequestURI)
16 w.Header().Set("Server-Protocol", r.Proto)
17 w.Header().Set("Server-Protocol-Major", fmt.Sprintf("%v", r.ProtoMajor))
18 w.Header().Set("Server-Protocol-Minor", fmt.Sprintf("%v", r.ProtoMinor))
19 w.Header().Set("Content-Length", fmt.Sprintf("%v", len))
20 w.Header().Set("Content-Type", r.Header.Get("Content-Type"))
21 w.Header().Set("Custom-Header", r.Header.Get("Custom-Header"))
22 w.Header().Set("Http-Host", r.Header.Get("Host"))
[all …]
/unit/src/test/
H A Dnxt_rbtree1.c260 w = temp->parent->right; in nxt_rbtree1_delete()
263 nxt_rbtree1_black(w); in nxt_rbtree1_delete()
269 if (nxt_rbtree1_is_black(w->left) && nxt_rbtree1_is_black(w->right)) in nxt_rbtree1_delete()
271 nxt_rbtree1_red(w); in nxt_rbtree1_delete()
277 nxt_rbtree1_red(w); in nxt_rbtree1_delete()
290 w = temp->parent->left; in nxt_rbtree1_delete()
293 nxt_rbtree1_black(w); in nxt_rbtree1_delete()
296 w = temp->parent->left; in nxt_rbtree1_delete()
299 if (nxt_rbtree1_is_black(w->left) && nxt_rbtree1_is_black(w->right)) in nxt_rbtree1_delete()
301 nxt_rbtree1_red(w); in nxt_rbtree1_delete()
[all …]
/unit/pkg/deb/debian/
H A Dunit.example-go-app9 func handler(w http.ResponseWriter, r *http.Request) {
10 w.Header().Add("Content-Type", "text/plain");
12 fmt.Fprintf(w, "Method : %s\n", r.Method)
13 fmt.Fprintf(w, "URL : %s\n", r.URL.Path)
14 fmt.Fprintf(w, "Host : %s\n", r.Host)
/unit/pkg/deb/debian.module/
H A Dunit.example-go-app9 func handler(w http.ResponseWriter, r *http.Request) {
10 w.Header().Add("Content-Type", "text/plain");
12 fmt.Fprintf(w, "Method : %s\n", r.Method)
13 fmt.Fprintf(w, "URL : %s\n", r.URL.Path)
14 fmt.Fprintf(w, "Host : %s\n", r.Host)
/unit/pkg/rpm/rpmbuild/SOURCES/
H A Dunit.example-go-app9 func handler(w http.ResponseWriter, r *http.Request) {
10 w.Header().Add("Content-Type", "text/plain");
12 fmt.Fprintf(w, "Method : %s\n", r.Method)
13 fmt.Fprintf(w, "URL : %s\n", r.URL.Path)
14 fmt.Fprintf(w, "Host : %s\n", r.Host)
/unit/test/go/post_variables/
H A Dapp.go8 func handler(w http.ResponseWriter, r *http.Request) {
11 w.Header().Set("X-Var-1", r.Form.Get("var1"))
12 w.Header().Set("X-Var-2", r.Form.Get("var2"))
13 w.Header().Set("X-Var-3", r.Form.Get("var3"))
/unit/test/go/get_variables/
H A Dapp.go8 func handler(w http.ResponseWriter, r *http.Request) {
9 w.Header().Set("X-Var-1", r.URL.Query().Get("var1"))
10 w.Header().Set("X-Var-2", r.URL.Query().Get("var2"))
11 w.Header().Set("X-Var-3", r.URL.Query().Get("var3"))
/unit/test/go/command_line_arguments/
H A Dapp.go12 func handler(w http.ResponseWriter, r *http.Request) {
15 w.Header().Add("X-Arg-0", fmt.Sprintf("%v", os.Args[0]))
16 w.Header().Add("Content-Length", fmt.Sprintf("%v", len(args)))
17 io.WriteString(w, args)
/unit/test/go/404/
H A Dapp.go10 func handler(w http.ResponseWriter, r *http.Request) {
14 w.WriteHeader(http.StatusNotFound)
15 io.WriteString(w, string(b))
/unit/test/go/mirror/
H A Dapp.go10 func handler(w http.ResponseWriter, r *http.Request) {
14 w.Header().Add("Content-Length", fmt.Sprintf("%v", len))
15 io.WriteString(w, string(buf[:len]))
/unit/test/go/cookies/
H A Dapp.go8 func handler(w http.ResponseWriter, r *http.Request) {
12 w.Header().Set("X-Cookie-1", cookie1.Value)
13 w.Header().Set("X-Cookie-2", cookie2.Value)
/unit/test/go/ns_inspect/
H A Dapp.go54 func handler(w http.ResponseWriter, r *http.Request) {
73 w.WriteHeader(http.StatusInternalServerError)
89 w.WriteHeader(http.StatusInternalServerError)
93 w.Header().Add("Content-Type", "application/json")
95 w.Write(data)
/unit/src/
H A Dnxt_upstream_round_robin.c46 double total, k, w; in nxt_upstream_round_robin_create() local
69 w = (wtcf != NULL) ? nxt_conf_get_number(wtcf) : 1; in nxt_upstream_round_robin_create()
70 total += w; in nxt_upstream_round_robin_create()
108 w = (wtcf != NULL) ? k * nxt_conf_get_number(wtcf) : k; in nxt_upstream_round_robin_create()
109 wt = (w > 1 || w == 0) ? round(w) : 1; in nxt_upstream_round_robin_create()
H A Dnxt_sha1.c129 #define STEP(f, a, b, c, d, e, w, t) \ argument
130 temp = ROTATE(5, (a)) + f((b), (c), (d)) + (e) + (w) + (t); \
/unit/test/go/empty/
H A Dapp.go8 func handler(w http.ResponseWriter, r *http.Request) {}
/unit/test/
H A Dtest_upstreams_rr.py466 def check_weight(w): argument
468 w, 'upstreams/one/servers/127.0.0.1:7081/weight'
/unit/src/java/nginx/unit/websocket/
H A DWsRemoteEndpointImplBase.java557 try (Writer w = getSendWriter()) { in sendObject() argument
558 ((Encoder.TextStream) encoder).encode(obj, w); in sendObject()
613 try (Writer w = getSendWriter()) { in sendObjectByCompletion() argument
614 ((Encoder.TextStream) encoder).encode(obj, w); in sendObjectByCompletion()
/unit/src/java/nginx/unit/
H A DContext.java990 PrintWriter w = resp.getWriter(); in service()
991 w.println("Unhandled exception: " + e); in service()
992 e.printStackTrace(w); in service()
994 w.close(); in service()