Home
last modified time | relevance | path

Searched refs:handshakeResponse (Results 1 – 2 of 2) sorted by relevance

/external/nanohttpd/websocket/src/test/java/fi/iki/elonen/
DWebSocketResponseHandlerTest.java121 Response handshakeResponse = this.nanoWebSocketServer.serve(this.session); in testConnectionHeaderHandlesKeepAlive_FixingFirefoxConnectIssue() local
123 assertNotNull(handshakeResponse); in testConnectionHeaderHandlesKeepAlive_FixingFirefoxConnectIssue()
128 Response handshakeResponse = this.nanoWebSocketServer.serve(this.session); in testHandshakeReturnsResponseWithExpectedHeaders() local
130 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() local
142 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 …]
/external/nanohttpd/websocket/src/main/java/fi/iki/elonen/
DNanoWSD.java79 …private final NanoHTTPD.Response handshakeResponse = new NanoHTTPD.Response(NanoHTTPD.Response.Sta… field in NanoWSD.WebSocket
96 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() local
849handshakeResponse.addHeader(NanoWSD.HEADER_WEBSOCKET_ACCEPT, makeAcceptKey(headers.get(NanoWSD.HEA… in serve()
856handshakeResponse.addHeader(NanoWSD.HEADER_WEBSOCKET_PROTOCOL, headers.get(NanoWSD.HEADER_WEBSOCKE… in serve()
859 return handshakeResponse; in serve()