public class NettyHttpServerResponse extends Object implements cloud.piranha.api.HttpServerResponse
| Constructor and Description |
|---|
NettyHttpServerResponse(io.netty.handler.codec.http.FullHttpResponse response)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getOutputStream()
Get the output stream.
|
void |
setHeader(String name,
String value)
Set the header.
|
void |
setStatus(int status)
Set the status.
|
void |
writeHeaders()
Write the headers.
|
void |
writeStatusLine()
Write the status line.
|
public NettyHttpServerResponse(io.netty.handler.codec.http.FullHttpResponse response)
response - the HTTP response.public OutputStream getOutputStream()
getOutputStream in interface cloud.piranha.api.HttpServerResponsepublic void setHeader(String name, String value)
setHeader in interface cloud.piranha.api.HttpServerResponsename - the name.value - the value.public void setStatus(int status)
setStatus in interface cloud.piranha.api.HttpServerResponsestatus - the status.public void writeHeaders()
throws IOException
writeHeaders in interface cloud.piranha.api.HttpServerResponseIOException - when an I/O error occurs.public void writeStatusLine()
throws IOException
writeStatusLine in interface cloud.piranha.api.HttpServerResponseIOException - when an I/O error occurs.Copyright © 2020. All rights reserved.