Uses of Class
jodd.http.HttpResponse
Packages that use HttpResponse
-
Uses of HttpResponse in jodd.http
Subclasses with type arguments of type HttpResponse in jodd.httpFields in jodd.http declared as HttpResponseMethods in jodd.http that return HttpResponseModifier and TypeMethodDescriptionprivate HttpResponseHttpRequest._send()protected HttpResponseHttpSession._sendRequest(HttpRequest httpRequest, HttpResponse previousResponse) Opens connection and sends a previous response.HttpResponse.close()Closes requests connection if it was open.HttpSession.getHttpResponse()Returns last receivedHTTP responseobject.static HttpResponseHttpResponse.readFrom(InputStream in) Reads response input stream and returnsresponse.HttpRequest.send()Opens connectionif not already open, sends request, reads response and closes the request.HttpSession.sendRequest(HttpRequest httpRequest) Sends new request using a session.HttpResponse.statusCode(int statusCode) Sets response status code.HttpResponse.statusPhrase(String statusPhrase) Sets response status phrase.HttpResponse.unzip()Unzips GZip-ed body content, removes the content-encoding header and sets the new content-length value.Methods in jodd.http that return types with arguments of type HttpResponseModifier and TypeMethodDescriptionHttpRequest.sendAsync()Sends http request asynchronously using common fork-join pool.Methods in jodd.http with parameters of type HttpResponseModifier and TypeMethodDescriptionprotected HttpResponseHttpSession._sendRequest(HttpRequest httpRequest, HttpResponse previousResponse) Opens connection and sends a previous response.HttpRequest.keepAlive(HttpResponse httpResponse, boolean doContinue) Continues using the same keep-alive connection.protected voidHttpTunnel.HttpTunnelConnection.onResponse(HttpResponse response) Invoked after target response is processed.protected voidHttpSession.readCookies(HttpResponse httpResponse) Reads cookies from response and adds to cookies list.Method parameters in jodd.http with type arguments of type HttpResponseModifier and TypeMethodDescriptionvoidHttpRequest.sendAndReceive(Consumer<HttpResponse> responseHandler) Syntax sugar.<R> RHttpRequest.sendAndReceive(Function<HttpResponse, R> responseHandler) Syntax sugar.