Uses of Interface
dev.mccue.jdk.httpserver.Body
-
Uses of Body in dev.mccue.jdk.httpserver
Methods in dev.mccue.jdk.httpserver that return BodyModifier and TypeMethodDescriptionstatic BodyBody.empty()Creates an emptyBodywhich will send no bytes to the client.static BodyBody.of(byte[] value) Creates aBodywrapping the givenbyte[].static BodyBody.of(InputStream inputStream) Creates aBodywrapping the givenbyte[].static BodyBody.of(InputStream inputStream, ResponseLength responseLength) Creates aBodywrapping the givenbyte[].static BodyConstructs a body which wraps the givenString.static BodyConstructs a body which wraps the givenString.Methods in dev.mccue.jdk.httpserver with parameters of type BodyModifier and TypeMethodDescriptionstatic voidHttpExchanges.sendResponse(HttpExchange exchange, int rCode, Body body) Sends a response to the client.static voidHttpExchangeUtils.sendResponse(HttpExchange exchange, int rCode, Body body) HttpExchanges.sendResponse(HttpExchange, int, Body)(HttpExchange, int, ResponseLength)}