/unit/test/python/variables/ |
H A D | asgi.py | 26 (b'content-length', str(len(body)).encode()), 27 (b'request-method', scope['method'].encode()), 28 (b'request-uri', scope['path'].encode()), 30 (b'http-version', scope['http_version'].encode()), 31 (b'asgi-version', scope['asgi']['version'].encode()), 32 (b'asgi-spec-version', scope['asgi']['spec_version'].encode()), 33 (b'scheme', scope['scheme'].encode()),
|
/unit/src/java/javax/websocket/ |
H A D | Encoder.java | 32 String encode(T object) throws EncodeException; in encode() method 37 void encode(T object, Writer writer) in encode() method 43 ByteBuffer encode(T object) throws EncodeException; in encode() method 48 void encode(T object, OutputStream os) in encode() method
|
/unit/test/ |
H A D | test_proxy.py | 257 sock.sendall("P/1.0\r\nHost: localhos".encode()) 261 sock.sendall("t\r\n\r\n".encode()) 275 sock.sendall("P/1.0\r\nHo".encode()) 287 sock.sendall("Content-Length: 30000\r\n".encode()) 291 sock.sendall("\r\n".encode()) 292 sock.sendall(("X" * 10000).encode()) 296 sock.sendall(("X" * 10000).encode()) 300 sock.sendall(("X" * 10000).encode()) 316 sock.sendall("Content-Length: 30000\r\n".encode()) 320 sock.sendall("\r\n".encode()) [all …]
|
H A D | test_reconfigure_tls.py | 69 ssl_sock.sendall("""GET / HTTP/1.1\r\n""".encode()) 74 """Host: localhost\r\nConnection: close\r\n\r\n""".encode()
|
/unit/test/unit/ |
H A D | http.py | 66 body = body.encode() 83 req = (req + crlf).encode() + body 143 print(log.encode()) 152 appendix = appendix.encode() 237 raw_body = bytes(raw_body.encode()) 311 ).encode() 358 return body.encode(), "multipart/form-data; boundary=%s" % boundary
|
/unit/test/python/restart/ |
H A D | v1.py | 2 body = "v1".encode()
|
H A D | v2.py | 2 body = "v2".encode()
|
H A D | longstart.py | 7 body = str(os.getpid()).encode()
|
/unit/test/python/client_ip/ |
H A D | wsgi.py | 2 ip = env['REMOTE_ADDR'].encode()
|
/unit/test/python/server_port/ |
H A D | asgi.py | 10 (b'server-port', str(scope['server'][1]).encode()),
|
/unit/test/python/path/ |
H A D | wsgi.py | 6 body = os.pathsep.join(sys.path).encode()
|
/unit/test/python/user_group/ |
H A D | wsgi.py | 9 out = json.dumps({'UID': uid, 'GID': gid,}).encode('utf-8')
|
/unit/test/python/environment/ |
H A D | wsgi.py | 12 body = body.encode()
|
/unit/test/python/websockets/subprotocol/ |
H A D | asgi.py | 13 (b'x-subprotocols', str(subprotocols).encode()),
|
/unit/test/python/mirror/ |
H A D | asgi.py | 15 'headers': [(b'content-length', str(len(body)).encode())],
|
/unit/test/python/ns_inspect/ |
H A D | wsgi.py | 31 return out.encode('utf-8')
|
/unit/test/python/threads/ |
H A D | asgi.py | 26 (b'x-thread', str(threading.currentThread().ident).encode()),
|
/unit/src/ |
H A D | nxt_http_return.c | 147 nxt_uint_t encode; in nxt_http_return_encode() local 155 encode = nxt_encode_complex_uri(NULL, location->start, location->length); in nxt_http_return_encode() 156 encoded->length = location->length + encode * 2; in nxt_http_return_encode()
|
/unit/test/python/upload/ |
H A D | wsgi.py | 22 data = filename.encode() + form['file'].file.read()
|
/unit/pkg/deb/debian/ |
H A D | unit.example-python-app | 16 return output.encode('utf8')
|
/unit/pkg/rpm/rpmbuild/SOURCES/ |
H A D | unit.example-python-app | 16 return output.encode('utf8')
|
/unit/pkg/deb/debian.module/ |
H A D | unit.example-python-app | 16 return [s.encode('utf8') for s in output]
|
/unit/test/unit/applications/ |
H A D | websockets.py | 29 sha1 = hashlib.sha1((key + GUID).encode()).digest() 70 return struct.pack('!H', code) + reason.encode('utf-8') 157 data = data.encode('utf-8')
|
/unit/test/python/delayed/ |
H A D | asgi.py | 36 'headers': [(b'content-length', str(len(body)).encode()),],
|
/unit/src/java/nginx/unit/websocket/ |
H A D | WsRemoteEndpointImplBase.java | 248 CoderResult cr = encoder.encode(part, encoderBuffer, true); in sendMessageBlock() 554 String msg = ((Encoder.Text) encoder).encode(obj); in sendObject() 558 ((Encoder.TextStream) encoder).encode(obj, w); in sendObject() 561 ByteBuffer msg = ((Encoder.Binary) encoder).encode(obj); in sendObject() 565 ((Encoder.BinaryStream) encoder).encode(obj, os); in sendObject() 610 String msg = ((Encoder.Text) encoder).encode(obj); in sendObjectByCompletion() 614 ((Encoder.TextStream) encoder).encode(obj, w); in sendObjectByCompletion() 618 ByteBuffer msg = ((Encoder.Binary) encoder).encode(obj); in sendObjectByCompletion() 622 ((Encoder.BinaryStream) encoder).encode(obj, os); in sendObjectByCompletion() 768 CoderResult cr = encoder.encode(message, buffer, true); in write()
|