Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 45) sorted by relevance

12

/unit/test/php/variables/
H A Dindex.php4 header('Content-Length: ' . strlen($body));
5 header('Request-Method: ' . $_SERVER['REQUEST_METHOD']);
6 header('Request-Uri: ' . $_SERVER['REQUEST_URI']);
7 header('Path-Info: ' . $_SERVER['PATH_INFO']);
8 header('Http-Host: ' . $_SERVER['HTTP_HOST']);
9 header('Server-Protocol: ' . $_SERVER['SERVER_PROTOCOL']);
10 header('Server-Software: ' . $_SERVER['SERVER_SOFTWARE']);
11 header('Custom-Header: ' . $_SERVER['HTTP_CUSTOM_HEADER']);
/unit/test/php/get_variables/
H A Dindex.php2 header('Content-Length: 0');
3 header('X-Var-1: ' . $_GET['var1']);
4 header('X-Var-2: ' . (isset($_GET['var2']) ? $_GET['var2'] : 'not set'));
5 header('X-Var-3: ' . (isset($_GET['var3']) ? $_GET['var3'] : 'not set'));
6 header('X-Var-4: ' . (isset($_GET['var4']) ? $_GET['var4'] : 'not set'));
/unit/test/php/post_variables/
H A Dindex.php2 header('Content-Length: 0');
3 header('X-Var-1: ' . $_POST['var1']);
4 header('X-Var-2: ' . (isset($_POST['var2']) ? $_POST['var2'] : 'not set'));
5 header('X-Var-3: ' . (isset($_POST['var3']) ? $_POST['var3'] : 'not set'));
/unit/test/php/opcache/
H A Dindex.php5 header('X-Pid: ' . $pid);
9 header('X-Cached: 1');
11 header('X-Cached: 0');
15 header('X-OPcache: -1');
/unit/test/php/auth/
H A Dindex.php3 header('X-Digest: ' . (isset($_SERVER['PHP_AUTH_DIGEST']) ? $_SERVER['PHP_AUTH_DIGEST'] : 'not set'…
4 header('X-User: ' . (isset($_SERVER['PHP_AUTH_USER']) ? $_SERVER['PHP_AUTH_USER'] : 'not set'));
5 header('X-Password: ' . (isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : 'not set'));
/unit/go/
H A Dresponse.go18 header http.Header member
25 return r.header
63 if _, hasType := r.header["Content-Type"]; !hasType {
64 r.header.Add("Content-Type", "text/html; charset=utf-8")
70 for k, vv := range r.header {
80 for k, vv := range r.header {
H A Dunit.go39 header := (*string_header)(unsafe.Pointer(&s))
41 return (*C.char)(header.Data)
61 header := &slice_header{
67 return *(*[]byte)(unsafe.Pointer(header))
/unit/test/php/header/
H A Dindex.php2 header($_SERVER['HTTP_X_HEADER']);
3 header('Content-Length: 0');
/unit/test/php/query_string/
H A Dindex.php2 header('Content-Length: 0');
3 header('Query-String: ' . $_SERVER['QUERY_STRING']);
/unit/test/php/cookies/
H A Dindex.php2 header('X-Cookie-1: ' . $_COOKIE['var']);
3 header('X-Cookie-2: ' . $_COOKIE['var2']);
/unit/test/php/ini_precision/
H A Dindex.php6 header('X-File: ' . php_ini_loaded_file());
7 header('X-Precision: ' . ini_get('precision'));
/unit/test/php/targets/
H A D1.php2 header('Content-Length: 1');
H A Dindex.php2 header('Content-Length: 5');
/unit/test/php/targets/2/
H A D2.php2 header('Content-Length: 1');
/unit/src/python/
H A Dnxt_python_asgi_websocket.c501 opcode = frame->header->opcode; in nxt_py_asgi_websocket_handler()
680 frame->header->fin); in nxt_py_asgi_websocket_suspend_frame()
713 ws->pending_fins += frame->header->fin; in nxt_py_asgi_websocket_suspend_frame()
715 if (frame->header->fin) { in nxt_py_asgi_websocket_suspend_frame()
719 if (frame->header->opcode == NXT_WEBSOCKET_OP_CONT) { in nxt_py_asgi_websocket_suspend_frame()
763 opcode = frame->header->opcode; in nxt_py_asgi_websocket_pop_msg()
855 fin = frame->header->fin; in nxt_py_asgi_websocket_pop_msg()
863 fin = frame->header->fin; in nxt_py_asgi_websocket_pop_msg()
933 if (p->frame->header->fin) { in nxt_py_asgi_websocket_pending_len()
960 ws->pending_fins -= frame->header->fin; in nxt_py_asgi_websocket_pop_frame()
[all …]
H A Dnxt_python_asgi.c828 PyObject *header, *v; in nxt_py_asgi_create_header() local
830 header = PyTuple_New(2); in nxt_py_asgi_create_header()
846 Py_DECREF(header); in nxt_py_asgi_create_header()
851 PyTuple_SET_ITEM(header, 0, v); in nxt_py_asgi_create_header()
856 Py_DECREF(header); in nxt_py_asgi_create_header()
863 return header; in nxt_py_asgi_create_header()
1167 if (header == NULL) { in nxt_py_asgi_enum_headers()
1173 Py_DECREF(header); in nxt_py_asgi_enum_headers()
1184 Py_DECREF(header); in nxt_py_asgi_enum_headers()
1195 Py_DECREF(header); in nxt_py_asgi_enum_headers()
[all …]
/unit/test/php/phpinfo/
H A Dindex.wrong2 header('Content-Length: 0');
/unit/test/php/404/
H A Dindex.php3 header('Temporary-Header: True', true, 404);
/unit/src/test/
H A Dnxt_unit_websocket_echo.c67 opcode = ws->header->opcode; in ws_echo_websocket_handler()
76 nxt_unit_websocket_send(req, opcode, ws->header->fin, buf, size); in ws_echo_websocket_handler()
/unit/test/php/mirror/
H A Dindex.php3 header('Content-Length: ' . strlen($body));
/unit/test/php/list-extensions/
H A Dindex.php7 header('Content-Type: application/json');
/unit/test/ruby/header_rack/
H A Dconfig.ru4 'rack.header' => 'hello'
/unit/test/php/cwd/
H A Dindex.php17 header('X-OPcache: ' . $opcache);
/unit/src/
H A Dnxt_unit_websocket.h19 nxt_websocket_header_t *header; member
/unit/src/java/nginx/unit/websocket/server/
H A DUpgradeUtil.java249 String header = headers.nextElement(); in headerContainsToken() local
250 String[] tokens = header.split(","); in headerContainsToken()
270 String header = headers.nextElement(); in getTokensFromHeader() local
271 String[] tokens = header.split(","); in getTokensFromHeader()

12