Package httpserver.core
Class ResponseBuilder
java.lang.Object
httpserver.core.ResponseBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncache(CacheControlStrategy strategy) contentType(ContentType type) contentType(String type) static ResponseBuilderrespond(HttpServerExchange exchange) static ResponseBuilderrespond(HttpServerExchange exchange, Function<Object, String> toJson) voidsend()voidsend(byte[] data) voidsend(InputStream in) voidvoidstatus(int status)
-
Method Details
-
respond
-
respond
-
status
-
header
-
header
-
header
-
cache
-
contentType
-
contentType
-
redirect
-
send
-
send
public void send(byte[] data) -
send
- Throws:
IOException
-
send
-
send
public void send()
-