public class NanoResponseBuilder extends Object
| Constructor and Description |
|---|
NanoResponseBuilder()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
NanoResponseBuilder |
bodyOnly(boolean bodyOnly)
Set the body only flag.
|
NanoResponse |
build()
Build the response.
|
NanoResponseBuilder |
outputStream(OutputStream outputStream)
Set the output stream.
|
public NanoResponseBuilder bodyOnly(boolean bodyOnly)
bodyOnly - if true the response will only output the body, if false
the response will contain the status line and response headers.public NanoResponse build()
public NanoResponseBuilder outputStream(OutputStream outputStream)
outputStream - the output stream.Copyright © 2020. All rights reserved.