Class SimpleHttpResponse

    • Constructor Detail

      • SimpleHttpResponse

        public SimpleHttpResponse​(HttpURLConnection connection,
                                  byte[] content)
    • Method Detail

      • getProtocol

        public HttpVersion getProtocol()
        Description copied from interface: HttpResponse
        HTTP协议
        Returns:
      • getHeaders

        public HttpHeaders getHeaders()
        Description copied from interface: HttpMessage
        HTTP报头
        Returns:
      • getStatus

        public HttpStatus getStatus()
        Description copied from interface: HttpResponse
        响应状态
        Returns:
      • close

        public void close()
        Description copied from interface: HttpResponse
        释放资源