public interface NettyHttpResponseBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
isStream() |
io.netty.handler.codec.http.FullHttpResponse |
toFullHttpResponse()
Converts this object to a full http response.
|
default io.netty.handler.codec.http.HttpResponse |
toHttpResponse()
Converts this object to the most appropriate http response type.
|
static io.netty.handler.codec.http.HttpResponse |
toHttpResponse(HttpResponse<?> response)
Convert the given response to a full http response.
|
default StreamedHttpResponse |
toStreamHttpResponse()
Converts this object to a streamed http response.
|
static StreamedHttpResponse |
toStreamResponse(HttpResponse<?> response)
Convert the given response to a full http response.
|
@NonNull io.netty.handler.codec.http.FullHttpResponse toFullHttpResponse()
@NonNull default StreamedHttpResponse toStreamHttpResponse()
@NonNull default io.netty.handler.codec.http.HttpResponse toHttpResponse()
boolean isStream()
@NonNull static io.netty.handler.codec.http.HttpResponse toHttpResponse(@NonNull HttpResponse<?> response)
response
- The response@NonNull static StreamedHttpResponse toStreamResponse(@NonNull HttpResponse<?> response)
response
- The response