Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 22 of 22) sorted by relevance

/unit/test/python/body_generate/
H A Dwsgi.py3 bytes = b'X' * int(length)
6 return [bytes]
/unit/src/java/javax/websocket/
H A DDecoder.java32 T decode(ByteBuffer bytes) throws DecodeException; in decode() argument
34 boolean willDecode(ByteBuffer bytes); in willDecode() argument
/unit/test/java/multipart/
H A Dapp.java53 final byte[] bytes = new byte[1024]; in doPost()
55 while ((read = filecontent.read(bytes)) != -1) { in doPost()
56 out.write(bytes, 0, read); in doPost()
/unit/src/
H A Dnxt_sha1.c27 ctx->bytes = 0; in nxt_sha1_init()
36 used = (size_t) (ctx->bytes & 0x3f); in nxt_sha1_update()
37 ctx->bytes += size; in nxt_sha1_update()
67 used = (size_t) (ctx->bytes & 0x3f); in nxt_sha1_final()
82 ctx->bytes <<= 3; in nxt_sha1_final()
83 ctx->buffer[56] = (u_char) (ctx->bytes >> 56); in nxt_sha1_final()
84 ctx->buffer[57] = (u_char) (ctx->bytes >> 48); in nxt_sha1_final()
85 ctx->buffer[58] = (u_char) (ctx->bytes >> 40); in nxt_sha1_final()
86 ctx->buffer[59] = (u_char) (ctx->bytes >> 32); in nxt_sha1_final()
89 ctx->buffer[62] = (u_char) (ctx->bytes >> 8); in nxt_sha1_final()
[all …]
H A Dnxt_sha1.h13 uint64_t bytes; member
H A Dnxt_random.c58 u_char bytes[NXT_RANDOM_KEY_SIZE]; in nxt_random_stir() member
105 nxt_random_add(r, key.bytes, NXT_RANDOM_KEY_SIZE); in nxt_random_stir()
H A Dnxt_http_variables.c319 nxt_off_t bytes; in nxt_http_var_body_bytes_sent() local
329 bytes = nxt_http_proto[r->protocol].body_bytes_sent(task, r->proto); in nxt_http_var_body_bytes_sent()
332 bytes) - str->start; in nxt_http_var_body_bytes_sent()
/unit/test/unit/applications/
H A Dwebsockets.py25 raw_key = bytes(random.getrandbits(8) for _ in range(16))
66 return bytes(b ^ m for b, m in zip(data, itertools.cycle(mask)))
72 def recv_bytes(sock, bytes): argument
83 data += sock.recv(bytes - len(data))
85 if len(data) == bytes:
/unit/test/python/input_read_length/
H A Dwsgi.py4 body = bytes(environ['wsgi.input'].read(input_length))
/unit/test/python/mirror/
H A Dwsgi.py4 body = bytes(environ['wsgi.input'].read(content_length))
/unit/src/java/nginx/unit/websocket/
H A DLocalStrings.properties26 …re.readOverflow=Buffer overflow. [{0}] bytes to write into a [{1}] byte buffer that already contai…
52 # frames and therefore must be 123 bytes (not characters) or less in length.
54 # as many as 4 bytes.
58 wsFrame.byteToLongFail=Too many bytes ([{0}]) were provided to be converted into a long
61 …frame was sent with a payload of size [{0}] which is larger than the maximum permitted of 125 bytes
68 wsFrame.messageTooBig=The message was [{0}] bytes long but the MessageHandler has a limit of [{1}]
96 wsRemoteEndpoint.tooMuchData=Ping or pong may not send more than 125 bytes
100 # frame and therefore must be 123 bytes (not characters) or less in length.
102 # as many as 4 bytes.
122 # frame and therefore must be 123 bytes (not characters) or less in length.
[all …]
H A DWsWebSocketContainer.java577 byte[] bytes = request.toString().getBytes(StandardCharsets.ISO_8859_1); in createProxyRequest()
578 return ByteBuffer.wrap(bytes); in createProxyRequest()
762 private static ByteBuffer putWithExpand(ByteBuffer input, byte[] bytes) { in putWithExpand() argument
763 if (bytes.length > input.remaining()) { in putWithExpand()
765 if (bytes.length > input.capacity()) { in putWithExpand()
766 newSize = 2 * bytes.length; in putWithExpand()
775 return input.put(bytes); in putWithExpand()
/unit/test/python/log_body/
H A Dwsgi.py3 body = bytes(environ['wsgi.input'].read(content_length))
/unit/test/python/ctx_iter_atexit/
H A Dwsgi.py13 body = bytes(self.environ['wsgi.input'].read(content_length))
/unit/test/python/variables/
H A Dwsgi.py4 body = bytes(environ['wsgi.input'].read(content_length))
/unit/test/python/delayed/
H A Dwsgi.py9 body = bytes(environ['wsgi.input'].read(content_length))
/unit/test/python/upload/
H A Dwsgi.py9 body.write(bytes(environ['wsgi.input'].read(length)))
/unit/src/python/
H A Dnxt_python_asgi_websocket.c421 PyObject *bytes, *text; in nxt_py_asgi_websocket_send_frame() local
443 bytes = PyDict_GetItem(dict, nxt_py_bytes_str); in nxt_py_asgi_websocket_send_frame()
444 if (bytes == Py_None) { in nxt_py_asgi_websocket_send_frame()
445 bytes = NULL; in nxt_py_asgi_websocket_send_frame()
448 if (nxt_slow_path(bytes != NULL && !PyBytes_Check(bytes))) { in nxt_py_asgi_websocket_send_frame()
463 if (nxt_slow_path(((bytes != NULL) ^ (text != NULL)) == 0)) { in nxt_py_asgi_websocket_send_frame()
468 if (bytes != NULL) { in nxt_py_asgi_websocket_send_frame()
469 buf = PyBytes_AS_STRING(bytes); in nxt_py_asgi_websocket_send_frame()
470 buf_size = PyBytes_GET_SIZE(bytes); in nxt_py_asgi_websocket_send_frame()
H A Dnxt_python_wsgi.c82 PyObject **bytes);
96 static int nxt_python_write(nxt_python_ctx_t *pctx, PyObject *bytes);
1079 nxt_python_str_buf(PyObject *str, char **buf, uint32_t *len, PyObject **bytes) in nxt_python_str_buf() argument
1084 *bytes = NULL; in nxt_python_str_buf()
1087 *bytes = PyUnicode_AsLatin1String(str); in nxt_python_str_buf()
1088 if (nxt_slow_path(*bytes == NULL)) { in nxt_python_str_buf()
1092 *buf = PyBytes_AS_STRING(*bytes); in nxt_python_str_buf()
1093 *len = PyBytes_GET_SIZE(*bytes); in nxt_python_str_buf()
1330 nxt_python_write(nxt_python_ctx_t *pctx, PyObject *bytes) in nxt_python_write() argument
1336 str_buf = PyBytes_AS_STRING(bytes); in nxt_python_write()
[all …]
/unit/test/unit/
H A Dhttp.py154 if isinstance(log, bytes):
238 raw_body = bytes(raw_body.encode())
/unit/src/java/nginx/unit/websocket/server/
H A DLocalStrings.properties34 wsFrameServer.bytesRead=Read [{0}] bytes into input buffer ready for processing
/unit/
H A DCHANGES749 *) Bugfix: header fields values with non-ASCII bytes might be handled