Searched refs:handshakeResponse (Results 1 – 2 of 2) sorted by relevance
121 Response handshakeResponse = this.nanoWebSocketServer.serve(this.session); in testConnectionHeaderHandlesKeepAlive_FixingFirefoxConnectIssue() local123 assertNotNull(handshakeResponse); in testConnectionHeaderHandlesKeepAlive_FixingFirefoxConnectIssue()128 Response handshakeResponse = this.nanoWebSocketServer.serve(this.session); in testHandshakeReturnsResponseWithExpectedHeaders() local130 assertNotNull(handshakeResponse); in testHandshakeReturnsResponseWithExpectedHeaders()132 …assertEquals(handshakeResponse.getHeader(NanoWSD.HEADER_WEBSOCKET_ACCEPT), "HSmrc0sMlYUkAGmm5OPpG2… in testHandshakeReturnsResponseWithExpectedHeaders()133 assertEquals(handshakeResponse.getHeader(NanoWSD.HEADER_WEBSOCKET_PROTOCOL), "chat"); in testHandshakeReturnsResponseWithExpectedHeaders()140 Response handshakeResponse = this.nanoWebSocketServer.serve(this.session); in testMissingKeyReturnsErrorResponse() local142 assertNotNull(handshakeResponse); in testMissingKeyReturnsErrorResponse()143 assertEquals(Response.Status.BAD_REQUEST, handshakeResponse.getStatus()); in testMissingKeyReturnsErrorResponse()149 Response handshakeResponse = this.nanoWebSocketServer.serve(this.session); in testWrongConnectionHeaderReturnsNullResponse() local[all …]
79 …private final NanoHTTPD.Response handshakeResponse = new NanoHTTPD.Response(NanoHTTPD.Response.Sta… field in NanoWSD.WebSocket96 this.handshakeResponse.addHeader(NanoWSD.HEADER_UPGRADE, NanoWSD.HEADER_UPGRADE_VALUE); in WebSocket()97 … this.handshakeResponse.addHeader(NanoWSD.HEADER_CONNECTION, NanoWSD.HEADER_CONNECTION_VALUE); in WebSocket()172 return this.handshakeResponse; in getHandshakeResponse()847 Response handshakeResponse = webSocket.getHandshakeResponse(); in serve() local849 …handshakeResponse.addHeader(NanoWSD.HEADER_WEBSOCKET_ACCEPT, makeAcceptKey(headers.get(NanoWSD.HEA… in serve()856 …handshakeResponse.addHeader(NanoWSD.HEADER_WEBSOCKET_PROTOCOL, headers.get(NanoWSD.HEADER_WEBSOCKE… in serve()859 return handshakeResponse; in serve()