public static class HttpResponsePacket.Builder extends HttpHeader.Builder<HttpResponsePacket.Builder>
packet
Modifier | Constructor and Description |
---|---|
protected |
HttpResponsePacket.Builder(HttpRequestPacket request) |
Modifier and Type | Method and Description |
---|---|
HttpResponsePacket |
build()
Build the HttpResponsePacket message.
|
HttpResponsePacket.Builder |
reasonPhrase(String reasonPhrase)
Sets the status reason phrase for this response.
|
HttpResponsePacket.Builder |
status(int status)
Sets the status code for this response.
|
chunked, contentLength, contentType, header, header, maxNumHeaders, protocol, protocol, upgrade
protected HttpResponsePacket.Builder(HttpRequestPacket request)
public HttpResponsePacket.Builder status(int status)
status
- the status code for this response.public HttpResponsePacket.Builder reasonPhrase(String reasonPhrase)
reasonPhrase
- the status reason phrase for this response.public final HttpResponsePacket build()
Copyright © 2013 Oracle Corporation. All Rights Reserved.