Tabnine Logo
RawHttpResponse.getStartLine
Code IndexAdd Tabnine to your IDE (free)

How to use
getStartLine
method
in
rawhttp.core.RawHttpResponse

Best Java code snippets using rawhttp.core.RawHttpResponse.getStartLine (Showing top 4 results out of 315)

origin: com.athaydes.rawhttp/rawhttp-core

@Override
public RawHttpResponse<Void> onResponse(Socket socket,
                    URI uri,
                    RawHttpResponse<Void> httpResponse) throws IOException {
  if (httpResponse.getHeaders()
      .getFirst("Connection")
      .orElse("")
      .equalsIgnoreCase("close") ||
      httpResponse.getStartLine().getHttpVersion().isOlderThan(HttpVersion.HTTP_1_1)) {
    socketByHost.remove(uri.getHost());
    // resolve the full response before closing the socket
    return httpResponse.eagerly(false);
  }
  return httpResponse;
}
origin: renatoathaydes/rawhttp

@Override
public RawHttpResponse<Void> onResponse(Socket socket,
                    URI uri,
                    RawHttpResponse<Void> httpResponse) throws IOException {
  if (httpResponse.getHeaders()
      .getFirst("Connection")
      .orElse("")
      .equalsIgnoreCase("close") ||
      httpResponse.getStartLine().getHttpVersion().isOlderThan(HttpVersion.HTTP_1_1)) {
    socketByHost.remove(uri.getHost());
    // resolve the full response before closing the socket
    return httpResponse.eagerly(false);
  }
  return httpResponse;
}
origin: com.athaydes.rawhttp/rawhttp-core

response.getStartLine(),
headers, bodyReader);
origin: renatoathaydes/rawhttp

response.getStartLine(),
headers, bodyReader);
rawhttp.coreRawHttpResponsegetStartLine

Popular methods of RawHttpResponse

  • getBody
  • writeTo
  • <init>
  • eagerly
    Ensure that this response is read eagerly, downloading the full body if necessary. The returned obje
  • getHeaders
  • getStatusCode
  • withHeaders
  • getLibResponse
  • getRequest
  • withBody

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now