Home
last modified time | relevance | path

Searched refs:reason (Results 1 – 19 of 19) sorted by relevance

/unit/src/nodejs/unit-http/
H A Dwebsocket_router_request.js49 WebSocketRouterRequest.prototype.reject = function(status, reason, extraHeaders) { argument
50 this.webSocketRequest.reject(status, reason, extraHeaders);
H A Dwebsocket_request.js448 WebSocketRequest.prototype.reject = function(status, reason, extraHeaders) { argument
464 if (reason) {
465 reason = reason.replace(headerSanitizeRegExp, '');
466 response.addHeader('X-WebSocket-Reject-Reason', reason);
H A Dhttp_server.js180 function writeHead(statusCode, reason, obj) { argument
189 if (typeof reason === 'string') {
190 this.statusMessage = reason;
197 obj = reason;
/unit/test/unit/applications/
H A Dwebsockets.py68 def serialize_close(self, code=1000, reason=''): argument
69 return struct.pack('!H', code) + reason.encode('utf-8')
124 reason = data[2:].decode('utf-8')
128 frame['reason'] = reason
/unit/test/
H A Dtest_tls_tickets.py84 reason='ticket check is not supported',
110 reason='ticket check is not supported',
147 reason='ticket check is not supported',
H A Dtest_tls_session.py78 reason='session reuse is not supported',
119 reason='session reuse is not supported',
H A Dtest_java_websockets.py1149 payload = ws.serialize_close(reason='Hello World!')
1158 payload = ws.serialize_close(reason='*' * 123)
1167 payload = ws.serialize_close(reason='*' * 124)
H A Dtest_node_websockets.py1169 payload = ws.serialize_close(reason='Hello World!')
1178 payload = ws.serialize_close(reason='*' * 123)
1187 payload = ws.serialize_close(reason='*' * 124)
H A Dtest_asgi_websockets.py1221 payload = ws.serialize_close(reason='Hello World!')
1230 payload = ws.serialize_close(reason='*' * 123)
1239 payload = ws.serialize_close(reason='*' * 124)
/unit/src/java/nginx/unit/websocket/
H A DWsSession.java637 String reason = closeReason.getReasonPhrase(); in sendCloseMessage() local
638 if (reason != null && reason.length() > 0) { in sendCloseMessage()
639 appendCloseReasonWithTruncation(msg, reason); in sendCloseMessage()
669 protected static void appendCloseReasonWithTruncation(ByteBuffer msg, String reason) { in appendCloseReasonWithTruncation() argument
674 byte[] reasonBytes = reason.getBytes(StandardCharsets.UTF_8); in appendCloseReasonWithTruncation()
683 byte[] bytesNext = reason.substring(pos, pos + 1).getBytes(StandardCharsets.UTF_8); in appendCloseReasonWithTruncation()
688 bytesNext = reason.substring(pos, pos + 1).getBytes(StandardCharsets.UTF_8); in appendCloseReasonWithTruncation()
H A DWsFrameBase.java318 String reason = null; in processDataControl() local
343 reason = controlBufferText.toString(); in processDataControl()
346 wsSession.onClose(new CloseReason(Util.getCloseCode(code), reason)); in processDataControl()
H A DLocalStrings.properties66 wsFrame.invalidUtf8Close=A WebSocket close frame was received with a close reason that contained in…
99 # Note the following message is used as a close reason in a WebSocket control
121 # Note the following message is used as a close reason in a WebSocket control
/unit/auto/os/
H A Dtest79 # for some reason, so use a portable echo.c program built
/unit/src/
H A Dnxt_cert.c101 long length, reason; in nxt_cert_bio() local
123 reason = ERR_GET_REASON(ERR_peek_last_error()); in nxt_cert_bio()
124 if (reason != PEM_R_NO_START_LINE) { in nxt_cert_bio()
H A Dnxt_openssl.c455 long reason; local
489 reason = ERR_GET_REASON(ERR_peek_last_error());
490 if (reason != PEM_R_NO_START_LINE) {
/unit/
H A DREADME.md77 choosing PHP for no particular reason.
H A DLICENSE174 incurred by, or claims asserted against, such Contributor by reason
/unit/pkg/deb/debian.module/
H A Dcopyright.unit-jsc-common459 incurred by, or claims asserted against, such Contributor by reason
/unit/pkg/rpm/rpmbuild/SOURCES/
H A DCOPYRIGHT.unit-jsc-common459 incurred by, or claims asserted against, such Contributor by reason