Home
last modified time | relevance | path

Searched refs:encode (Results 1 – 25 of 34) sorted by relevance

12

/unit/test/python/variables/
H A Dasgi.py26 (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 DEncoder.java32 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 Dtest_proxy.py254 sock.sendall("P/1.0\r\nHost: localhos".encode())
258 sock.sendall("t\r\n\r\n".encode())
270 sock.sendall("P/1.0\r\nHo".encode())
280 sock.sendall("Content-Length: 30000\r\n".encode())
284 sock.sendall("\r\n".encode())
285 sock.sendall(("X" * 10000).encode())
289 sock.sendall(("X" * 10000).encode())
293 sock.sendall(("X" * 10000).encode())
307 sock.sendall("Content-Length: 30000\r\n".encode())
311 sock.sendall("\r\n".encode())
[all …]
H A Dtest_reconfigure_tls.py69 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 Dhttp.py66 body = body.encode()
83 req = (req + crlf).encode() + body
146 print(log.encode())
155 appendix = appendix.encode()
238 raw_body = bytes(raw_body.encode())
312 ).encode()
359 return body.encode(), "multipart/form-data; boundary=%s" % boundary
/unit/test/python/restart/
H A Dv1.py2 body = "v1".encode()
H A Dv2.py2 body = "v2".encode()
H A Dlongstart.py7 body = str(os.getpid()).encode()
/unit/test/python/client_ip/
H A Dwsgi.py2 ip = env['REMOTE_ADDR'].encode()
/unit/test/python/server_port/
H A Dasgi.py10 (b'server-port', str(scope['server'][1]).encode()),
/unit/test/python/path/
H A Dwsgi.py6 body = os.pathsep.join(sys.path).encode()
/unit/test/python/user_group/
H A Dwsgi.py9 out = json.dumps({'UID': uid, 'GID': gid,}).encode('utf-8')
/unit/test/python/environment/
H A Dwsgi.py12 body = body.encode()
/unit/test/python/websockets/subprotocol/
H A Dasgi.py13 (b'x-subprotocols', str(subprotocols).encode()),
/unit/test/python/mirror/
H A Dasgi.py15 'headers': [(b'content-length', str(len(body)).encode())],
/unit/test/python/ns_inspect/
H A Dwsgi.py31 return out.encode('utf-8')
/unit/test/python/threads/
H A Dasgi.py26 (b'x-thread', str(threading.currentThread().ident).encode()),
/unit/src/
H A Dnxt_http_return.c150 nxt_uint_t encode; in nxt_http_return_encode() local
158 encode = nxt_encode_complex_uri(NULL, location->start, location->length); in nxt_http_return_encode()
159 encoded->length = location->length + encode * 2; in nxt_http_return_encode()
/unit/test/python/upload/
H A Dwsgi.py22 data = filename.encode() + form['file'].file.read()
/unit/pkg/deb/debian/
H A Dunit.example-python-app16 return output.encode('utf8')
/unit/pkg/rpm/rpmbuild/SOURCES/
H A Dunit.example-python-app16 return output.encode('utf8')
/unit/pkg/deb/debian.module/
H A Dunit.example-python-app16 return [s.encode('utf8') for s in output]
/unit/test/unit/applications/
H A Dwebsockets.py29 sha1 = hashlib.sha1((key + GUID).encode()).digest()
69 return struct.pack('!H', code) + reason.encode('utf-8')
156 data = data.encode('utf-8')
/unit/test/python/delayed/
H A Dasgi.py36 'headers': [(b'content-length', str(len(body)).encode()),],
/unit/src/java/nginx/unit/websocket/
H A DWsRemoteEndpointImplBase.java248 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()

12