/unit/ |
H A D | CHANGES | 204 *) Feature: forwarded header to replace client address and protocol. 259 *) Bugfix: incorrect Python protocol auto detection (ASGI or WSGI) for 480 *) Feature: the "protocol" option in Python applications aids choice
|
/unit/docs/ |
H A D | unit-openapi.yaml | 2229 (https://unit.nginx.org/configuration/#ip-protocol-forwarding) 2383 /config/listeners/{listenerName}/forwarded/protocol: 2389 summary: "Retrieve the protocol option in a listener" 2390 description: "Retrieves the `protocol` option that configures the protocol 2425 summary: "Create or overwrite the protocol option in a listener" 2426 description: "Creates or overwrites the `protocol` option." 4784 protocol: "http" 4816 # /config/listeners/{listenerName}/forwarded/protocol 5705 protocol: 6129 protocol: [all …]
|
/unit/src/nodejs/unit-http/ |
H A D | websocket_connection.js | 36 function WebSocketConnection(socket, extensions, protocol, maskOutgoingPackets, config) { argument 60 this.protocol = protocol;
|
H A D | websocket_request.js | 159 requestedProtocolsFullCase.forEach(function(protocol) { argument 160 var lcProtocol = protocol.toLocaleLowerCase(); 162 self.protocolFullCaseMap[lcProtocol] = protocol;
|
H A D | websocket_router.js | 63 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 D | websocket_router_request.js | 26 this.protocol = null; 29 this.protocol = resolvedProtocol; 44 var connection = this.webSocketRequest.accept(this.protocol, origin, cookies);
|
/unit/src/ |
H A D | nxt_application.h | 54 nxt_str_t protocol; member
|
H A D | nxt_conf_validation.c | 2637 nxt_conf_value_t *client_ip, *protocol; in nxt_conf_vldt_forwarded() local 2643 protocol = nxt_conf_get_object_member(value, &protocol_str, NULL); in nxt_conf_vldt_forwarded() 2645 if (client_ip == NULL && protocol == NULL) { in nxt_conf_vldt_forwarded()
|
H A D | nxt_h1proto.c | 340 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 D | nxt_http.h | 126 nxt_http_protocol_t protocol:8; /* 2 bits */ member 198 nxt_http_protocol_t protocol:8; /* 2 bits */ member 295 nxt_http_forward_header_t protocol; member
|
H A D | nxt_http_proxy.c | 14 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 D | nxt_http_request.c | 350 nxt_http_forward_header_t *client_ip, *protocol; in nxt_http_request_forward() local 358 protocol = &forward->protocol; in nxt_http_request_forward() 389 if (protocol->header != NULL in nxt_http_request_forward() 391 && f->hash == protocol->header_hash in nxt_http_request_forward() 393 && f->name_length == protocol->header->length in nxt_http_request_forward() 616 nxt_http_proto[r->protocol].local_addr(task, r); in nxt_http_request_proto_info() 625 nxt_http_proto[r->protocol].body_read(task, r); in nxt_http_request_read_body() 730 nxt_http_proto[r->protocol].send(task, r, out); in nxt_http_request_send() 825 nxt_http_protocol_t protocol; in nxt_http_request_close_handler() local 862 protocol = r->protocol; in nxt_http_request_close_handler() [all …]
|
H A D | nxt_http_route.c | 1623 nxt_http_proto[r->protocol].local_addr(task, r); in nxt_http_route_match()
|
H A D | nxt_http_variables.c | 444 bytes = nxt_http_proto[r->protocol].body_bytes_sent(task, r->proto); in nxt_http_var_body_bytes_sent()
|
H A D | nxt_main_process.c | 213 offsetof(nxt_common_app_conf_t, u.python.protocol),
|
H A D | nxt_router.c | 2413 &forward->protocol); in nxt_router_conf_forward()
|
H A D | nxt_socket.c | 16 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 D | nxt_socket.h | 95 nxt_uint_t type, nxt_uint_t protocol, nxt_uint_t flags);
|
H A D | nxt_upstream.h | 64 uint8_t protocol; member
|
H A D | nxt_upstream_round_robin.c | 20 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()
|
/unit/src/python/ |
H A D | nxt_python.c | 320 proto = c->protocol; in nxt_python_start()
|
/unit/test/ |
H A D | test_asgi_application.py | 475 client.load('legacy_force', protocol='asgi')
|
H A D | test_tls_conf_command.py | 49 protocol = sock.cipher()[1] 51 if '/' in protocol: 68 assert cipher[1] != protocol, 'new protocol used'
|
/unit/tools/ |
H A D | README.md | 84 | `http://…`*URI* | For remote TCP control sockets, the URI may include the protocol, hostname, and…
|