Uses of Class
dev.mccue.jdk.httpserver.ResponseLength
-
Uses of ResponseLength in dev.mccue.jdk.httpserver
Methods in dev.mccue.jdk.httpserver that return ResponseLengthModifier and TypeMethodDescriptionstatic ResponseLengthResponseLength.known(long responseLength) Construct aResponseLengthgiven a known response length that will be sent.default ResponseLengthBody.responseLength()The length of the response body that will be written whenBody.writeTo(OutputStream)is called.static ResponseLengthResponseLength.unknown()Construct aResponseLengthwhich represents an unknown number of bytes to be sent in a response.Methods in dev.mccue.jdk.httpserver with parameters of type ResponseLengthModifier and TypeMethodDescriptionstatic BodyBody.of(InputStream inputStream, ResponseLength responseLength) Creates aBodywrapping the givenbyte[].static voidHttpExchanges.sendResponseHeaders(HttpExchange exchange, int rCode, ResponseLength responseLength) Starts sending the response back to the client using the current set of response headers and the numeric response code as specified in this method.static voidHttpExchangeUtils.sendResponseHeaders(HttpExchange exchange, int rCode, ResponseLength responseLength)