Class HttpRequestBase

    • Constructor Detail

      • HttpRequestBase

        public HttpRequestBase()
    • Method Detail

      • getMethod

        public abstract java.lang.String getMethod()
        Description copied from interface: HttpUriRequest
        Returns the HTTP method this request uses, such as GET, PUT, POST, or other.
        Specified by:
        getMethod in interface HttpUriRequest
      • setProtocolVersion

        public void setProtocolVersion​(ProtocolVersion version)
        Since:
        4.3
      • getURI

        public java.net.URI getURI()
        Returns the original request URI.

        Please note URI remains unchanged in the course of request execution and is not updated if the request is redirected to another location.

        Specified by:
        getURI in interface HttpUriRequest
      • setURI

        public void setURI​(java.net.URI uri)
      • started

        public void started()
        Since:
        4.2
      • releaseConnection

        public void releaseConnection()
        A convenience method to simplify migration from HttpClient 3.1 API. This method is equivalent to AbstractExecutionAwareRequest.reset().
        Since:
        4.2
      • toString

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