Class MetaData.Response

  • All Implemented Interfaces:
    java.lang.Iterable<HttpField>
    Enclosing class:
    MetaData

    public static class MetaData.Response
    extends MetaData
    • Constructor Detail

      • Response

        public Response​(HttpVersion version,
                        int status,
                        HttpFields fields,
                        long contentLength)
      • Response

        public Response​(HttpVersion version,
                        int status,
                        java.lang.String reason,
                        HttpFields fields,
                        long contentLength)
      • Response

        public Response​(HttpVersion version,
                        int status,
                        java.lang.String reason,
                        HttpFields fields,
                        long contentLength,
                        java.util.function.Supplier<HttpFields> trailers)
    • Method Detail

      • getStatus

        public int getStatus()
        Returns:
        the HTTP status
      • getReason

        public java.lang.String getReason()
        Returns:
        the HTTP reason
      • toString

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