Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 24 of 24) 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/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_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_http_request.c350 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 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_socket.h95 nxt_uint_t type, nxt_uint_t protocol, nxt_uint_t flags);
H A Dnxt_application.h54 nxt_str_t protocol; member
H A Dnxt_http.h126 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 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_http_variables.c444 bytes = nxt_http_proto[r->protocol].body_bytes_sent(task, r->proto); in nxt_http_var_body_bytes_sent()
H A Dnxt_conf_validation.c2637 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 Dnxt_main_process.c213 offsetof(nxt_common_app_conf_t, u.python.protocol),
H A Dnxt_http_route.c1623 nxt_http_proto[r->protocol].local_addr(task, r); in nxt_http_route_match()
H A Dnxt_router.c2413 &forward->protocol); in nxt_router_conf_forward()
/unit/test/
H A Dtest_tls_conf_command.py49 protocol = sock.cipher()[1]
51 if '/' in protocol:
68 assert cipher[1] != protocol, 'new protocol used'
H A Dtest_asgi_application.py475 client.load('legacy_force', protocol='asgi')
/unit/tools/
H A DREADME.md84 | `http://…`*URI* | For remote TCP control sockets, the URI may include the protocol, hostname, and…
/unit/docs/
H A Dunit-openapi.yaml2229 (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/python/
H A Dnxt_python.c320 proto = c->protocol; in nxt_python_start()
/unit/
H A DCHANGES204 *) 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