Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 21 of 21) sorted by relevance

/unit/src/nodejs/unit-http/
H A Dwebsocket_router.js63 WebSocketRouter.prototype.mount = function(path, protocol, callback) { argument
67 if (!protocol) {
68 protocol = '____no_protocol____';
81 protocol = protocol.toLocaleLowerCase();
83 if (this.findHandlerIndex(pathString, protocol) !== -1) {
90 'protocol': protocol,
94 WebSocketRouter.prototype.unmount = function(path, protocol) { argument
105 protocol = protocol.toLocaleLowerCase();
108 if (handler.pathString === pathString && handler.protocol === protocol) {
142 if (requestedProtocol === handler.protocol ||
[all …]
H A Dwebsocket_router_request.js26 this.protocol = null;
29 this.protocol = resolvedProtocol;
44 var connection = this.webSocketRequest.accept(this.protocol, origin, cookies);
H A Dwebsocket_request.js159 requestedProtocolsFullCase.forEach(function(protocol) { argument
160 var lcProtocol = protocol.toLocaleLowerCase();
162 self.protocolFullCaseMap[lcProtocol] = protocol;
H A Dwebsocket_connection.js36 function WebSocketConnection(socket, extensions, protocol, maskOutgoingPackets, config) { argument
60 this.protocol = protocol;
/unit/test/
H A Dtest_tls_conf_command.py42 protocol = sock.cipher()[1]
44 if '/' in protocol:
50 "conf_commands": {"protocol": '-' + protocol},
61 assert cipher[1] != protocol, 'new protocol used'
77 "protocol": '-' + protocol,
H A Dtest_asgi_application.py433 self.load('legacy_force', protocol='asgi')
/unit/src/
H A Dnxt_http_proxy.c14 uint8_t protocol; member
92 proxy->protocol = NXT_HTTP_PROTO_H1; in nxt_http_proxy_init()
160 us->protocol = proxy->protocol; in nxt_http_proxy_server_get()
173 peer->protocol = us->protocol; in nxt_http_proxy_upstream_ready()
177 nxt_http_proto[peer->protocol].peer_connect(task, peer); in nxt_http_proxy_upstream_ready()
212 nxt_http_proto[peer->protocol].peer_header_send(task, peer); in nxt_http_proxy_header_send()
234 nxt_http_proto[peer->protocol].peer_header_read(task, peer); in nxt_http_proxy_header_sent()
309 nxt_http_proto[peer->protocol].peer_read(task, peer); in nxt_http_proxy_send_body()
312 nxt_http_proto[peer->protocol].peer_close(task, peer); in nxt_http_proxy_send_body()
360 nxt_http_proto[peer->protocol].peer_read(task, peer); in nxt_http_proxy_buf_mem_completion()
[all …]
H A Dnxt_http_request.c342 nxt_http_forward_header_t *client_ip, *protocol; in nxt_http_request_forward() local
350 protocol = &forward->protocol; in nxt_http_request_forward()
381 if (protocol->header != NULL in nxt_http_request_forward()
383 && f->hash == protocol->header_hash in nxt_http_request_forward()
385 && f->name_length == protocol->header->length in nxt_http_request_forward()
601 nxt_http_proto[r->protocol].local_addr(task, r); in nxt_http_request_proto_info()
610 nxt_http_proto[r->protocol].body_read(task, r); in nxt_http_request_read_body()
703 nxt_http_proto[r->protocol].send(task, r, out); in nxt_http_request_send()
796 nxt_http_protocol_t protocol; in nxt_http_request_close_handler() local
828 protocol = r->protocol; in nxt_http_request_close_handler()
[all …]
H A Dnxt_upstream_round_robin.c20 uint8_t protocol; member
105 urr->server[i].protocol = NXT_HTTP_PROTO_H1; in nxt_upstream_round_robin_create()
201 us->protocol = best->protocol; in nxt_upstream_round_robin_server_get()
H A Dnxt_socket.c16 nxt_uint_t protocol, nxt_uint_t flags) in nxt_socket_create() argument
28 s = socket(domain, type, protocol); in nxt_socket_create()
32 domain, type, protocol, nxt_socket_errno); in nxt_socket_create()
H A Dnxt_upstream.h64 uint8_t protocol; member
H A Dnxt_application.h54 nxt_str_t protocol; member
H A Dnxt_socket.h95 nxt_uint_t type, nxt_uint_t protocol, nxt_uint_t flags);
H A Dnxt_http.h126 nxt_http_protocol_t protocol:8; /* 2 bits */ member
191 nxt_http_protocol_t protocol:8; /* 2 bits */ member
284 nxt_http_forward_header_t protocol; member
H A Dnxt_h1proto.c340 const char *protocol; in nxt_http_conn_test() local
347 protocol = "SSLv"; in nxt_http_conn_test()
350 protocol = "TLSv"; in nxt_http_conn_test()
355 nxt_debug(task, "SSL/TLS: %s%ud.%ud", protocol, major, minor); in nxt_http_conn_test()
H A Dnxt_conf_validation.c2352 nxt_conf_value_t *client_ip, *protocol; in nxt_conf_vldt_forwarded() local
2358 protocol = nxt_conf_get_object_member(value, &protocol_str, NULL); in nxt_conf_vldt_forwarded()
2360 if (client_ip == NULL && protocol == NULL) { in nxt_conf_vldt_forwarded()
H A Dnxt_main_process.c208 offsetof(nxt_common_app_conf_t, u.python.protocol),
H A Dnxt_http_route.c1578 nxt_http_proto[r->protocol].local_addr(task, r); in nxt_http_route_match()
H A Dnxt_router.c2200 &forward->protocol); in nxt_router_conf_forward()
3831 bytes = nxt_http_proto[r->protocol].body_bytes_sent(task, r->proto); in nxt_router_access_log_writer()
/unit/src/python/
H A Dnxt_python.c238 proto = c->protocol; in nxt_python_start()
/unit/
H A DCHANGES31 *) Bugfix: incorrect Python protocol auto detection (ASGI or WSGI) for
252 *) Feature: the "protocol" option in Python applications aids choice