Class MetaData

    • Method Detail

      • isTunnel

        public static boolean isTunnel​(java.lang.String method,
                                       int status)

        Returns whether the given HTTP request method and HTTP response status code identify a successful HTTP CONNECT tunnel.

        Parameters:
        method - the HTTP request method
        status - the HTTP response status code
        Returns:
        whether method and status identify a successful HTTP CONNECT tunnel
      • isRequest

        public boolean isRequest()
      • isResponse

        public boolean isResponse()
      • getHttpVersion

        public HttpVersion getHttpVersion()
        Returns:
        the HTTP version of this MetaData object
      • getFields

        public HttpFields getFields()
        Returns:
        the HTTP fields of this MetaData object
      • getTrailerSupplier

        public java.util.function.Supplier<HttpFields> getTrailerSupplier()
      • getContentLength

        public long getContentLength()
      • iterator

        public java.util.Iterator<HttpField> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<HttpField>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object