java.lang.Object
httpserver.core.ResponseBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncontentType(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
- Throws:
InvalidInput
-
respond
public static ResponseBuilder respond(HttpServerExchange exchange, Function<Object, String> toJson) throws InvalidInput- Throws:
InvalidInput
-
status
- Throws:
InvalidInput
-
header
-
header
-
header
-
contentType
-
contentType
-
redirect
-
send
-
send
public void send(byte[] data) -
send
- Throws:
IOException
-
send
-
send
public void send()
-