Class MetaData.Response

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

    @Deprecated(since="2021-05-27")
    public static class MetaData.Response
    extends MetaData
    Deprecated.
    • Constructor Detail

      • Response

        public Response()
        Deprecated.
      • Response

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

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

      • isResponse

        public boolean isResponse()
        Deprecated.
        Overrides:
        isResponse in class MetaData
      • getStatus

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

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

        public void setStatus​(int status)
        Deprecated.
        Parameters:
        status - the HTTP status to set
      • setReason

        public void setReason​(java.lang.String reason)
        Deprecated.
        Parameters:
        reason - the HTTP reason to set
      • toString

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