DefaultHttpServerResponse
, GrizzlyHttpServerResponse
, NettyHttpServerResponse
public interface HttpServerResponse
Modifier and Type | Method | Description |
---|---|---|
OutputStream |
getOutputStream() |
Get the output stream.
|
void |
setHeader(String name,
String value) |
Set the specified header.
|
void |
setStatus(int status) |
Set the status.
|
void |
writeHeaders() |
Write the response headers.
|
void |
writeStatusLine() |
Write the status line.
|
OutputStream getOutputStream()
void setHeader(String name, String value)
name
- the header name.value
- the header value.void setStatus(int status)
status
- the status.void writeHeaders() throws IOException
IOException
- when an I/O error occurs.void writeStatusLine() throws IOException
IOException
- when an I/O error occurs.Copyright © 2020 Piranha Cloud. All rights reserved.