/** * Sets the status and reason phrase on the specified response. * @param response the response to set the status and reason phrase on. */ public void setValues(final HttpResponsePacket response) { response.setStatus(this); response.setReasonPhrase(Buffers.wrap(null, reasonPhraseBytes)); } }
/** * Sets the status and reason phrase on the specified response. * @param response the response to set the status and reason phrase on. */ public void setValues(final HttpResponsePacket response) { response.setStatus(this); response.setReasonPhrase(Buffers.wrap(null, reasonPhraseBytes)); } }
/** * Sets the status and reason phrase on the specified response. * @param response the response to set the status and reason phrase on. */ public void setValues(final HttpResponsePacket response) { response.setStatus(this); response.setReasonPhrase(Buffers.wrap(null, reasonPhraseBytes)); } }
/** * Sets the status and reason phrase on the specified response. * @param response the response to set the status and reason phrase on. */ public void setValues(final HttpResponsePacket response) { response.setStatus(this); response.setReasonPhrase(Buffers.wrap(null, reasonPhraseBytes)); } }
/** * Sets the status and reason phrase on the specified response. * @param response the response to set the status and reason phrase on. */ public void setValues(final HttpResponsePacket response) { response.setStatus(this); response.setReasonPhrase(Buffers.wrap(null, reasonPhraseBytes)); } }
/** * Sets the status and reason phrase on the specified response. * @param response the response to set the status and reason phrase on. */ public void setValues(final HttpResponsePacket response) { response.setStatus(this); response.setReasonPhrase(Buffers.wrap(null, reasonPhraseBytes)); } }
/** * Sets the status and reason phrase on the specified response. * @param response the response to set the status and reason phrase on. */ public void setValues(final HttpResponsePacket response) { response.setStatus(this); response.setReasonPhrase(Buffers.wrap(null, reasonPhraseBytes)); } }
/** * Sets the status and reason phrase on the specified response. * @param response the response to set the status and reason phrase on. */ public void setValues(final HttpResponsePacket response) { response.setStatus(this); response.setReasonPhrase(Buffers.wrap(null, reasonPhraseBytes)); } }
/** * Sets the status and reason phrase on the specified response. * @param response the response to set the status and reason phrase on. */ public void setValues(final HttpResponsePacket response) { response.setStatus(this); response.setReasonPhrase(Buffers.wrap(null, reasonPhraseBytes)); } }
/** * Sets the status and reason phrase on the specified response. * @param response the response to set the status and reason phrase on. */ public void setValues(final HttpResponsePacket response) { response.setStatus(this); response.setReasonPhrase(Buffers.wrap(null, reasonPhraseBytes)); } }
private static HttpResponsePacket composeHandshakeError(final HttpRequestPacket request, final HandshakeException e) { final HttpResponsePacket response = request.getResponse(); response.setStatus(e.getCode()); response.setReasonPhrase(e.getMessage()); return response; } }
private static HttpResponsePacket composeHandshakeError(final HttpRequestPacket request, final HandshakeException e) { final HttpResponsePacket response = request.getResponse(); response.setStatus(e.getCode()); response.setReasonPhrase(e.getMessage()); return response; } }
private static HttpResponsePacket composeHandshakeError(final HttpRequestPacket request, final HandshakeException e) { final HttpResponsePacket response = request.getResponse(); response.setStatus(e.getCode()); response.setReasonPhrase(e.getMessage()); return response; }
private static HttpResponsePacket composeHandshakeError(final HttpRequestPacket request, final HandshakeException e) { final HttpResponsePacket response = request.getResponse(); response.setStatus(e.getCode()); response.setReasonPhrase(e.getMessage()); return response; } }
private static HttpResponsePacket composeHandshakeError(final HttpRequestPacket request, final HandshakeException e) { final HttpResponsePacket response = request.getResponse(); response.setStatus(e.getCode()); response.setReasonPhrase(e.getMessage()); return response; } }
private static HttpResponsePacket composeHandshakeError(final HttpRequestPacket request, final HandshakeException e) { final HttpResponsePacket response = request.getResponse(); response.setStatus(e.getCode()); response.setReasonPhrase(e.getMessage()); return response; } }
private static HttpResponsePacket composeHandshakeError(final HttpRequestPacket request, final HandshakeException e) { final HttpResponsePacket response = request.getResponse(); response.setStatus(e.getCode()); response.setReasonPhrase(e.getMessage()); return response; } }
private void write(FilterChainContext ctx, UpgradeResponse response) { final HttpResponsePacket responsePacket = ((HttpRequestPacket) ((HttpContent) ctx.getMessage()).getHttpHeader()).getResponse(); responsePacket.setProtocol(Protocol.HTTP_1_1); responsePacket.setStatus(response.getStatus()); // TODO // responsePacket.setReasonPhrase(response.getReasonPhrase()); for (Map.Entry<String, List<String>> entry : response.getHeaders().entrySet()) { responsePacket.setHeader(entry.getKey(), Utils.getHeaderFromList(entry.getValue())); } ctx.write(HttpContent.builder(responsePacket).build()); }
private void writeHttpResponse(FilterChainContext ctx, int status) { HttpResponsePacket responsePacket = getHttpRequest(ctx).getResponse(); responsePacket.setProtocol(Protocol.HTTP_1_1); responsePacket.setStatus(status); ctx.write(HttpContent.builder(responsePacket).build()); }
private void writeHttpResponse(FilterChainContext ctx, int status) { HttpResponsePacket responsePacket = getHttpRequest(ctx).getResponse(); responsePacket.setProtocol(Protocol.HTTP_1_1); responsePacket.setStatus(status); ctx.write(HttpContent.builder(responsePacket).build()); }