org.apache.hc.client5.http.async.methods

## Class BasicHttpRequests

- java.lang.Object
- - org.apache.hc.client5.http.async.methods.BasicHttpRequests

- Deprecated.
  Use `BasicRequestBuilder`.

      @Deprecated
      public final class BasicHttpRequests
      extends Object

  Common HTTP methods using `BasicHttpRequest` as a HTTP request message representation.
  Since:
    5.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BasicHttpRequests()` Deprecated.

  - ### Method Summary

    All Methods Static Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `create(org.apache.hc.core5.http.Method method, org.apache.hc.core5.http.HttpHost host, String path)` Deprecated. Creates a new `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `create(org.apache.hc.core5.http.Method method, String uri)` Deprecated. Creates a new `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `create(org.apache.hc.core5.http.Method method, URI uri)` Deprecated. Creates a new `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `create(String method, String uri)` Deprecated. Creates a new BasicHttpRequest for the given `method` and `String` URI.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `create(String method, URI uri)` Deprecated. Creates a new BasicHttpRequest for the given `method` and `URI`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `delete(org.apache.hc.core5.http.HttpHost host, String path)` Deprecated. Creates a new DELETE `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `delete(String uri)` Deprecated. Creates a new DELETE `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `delete(URI uri)` Deprecated. Creates a new DELETE `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `get(org.apache.hc.core5.http.HttpHost host, String path)` Deprecated. Creates a new HEAD `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `get(String uri)` Deprecated. Creates a new GET `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `get(URI uri)` Deprecated. Creates a new GET `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `head(org.apache.hc.core5.http.HttpHost host, String path)` Deprecated. Creates a new HEAD `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `head(String uri)` Deprecated. Creates a new HEAD `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `head(URI uri)` Deprecated. Creates a new HEAD `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `options(org.apache.hc.core5.http.HttpHost host, String path)` Deprecated. Creates a new OPTIONS `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `options(String uri)` Deprecated. Creates a new OPTIONS `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `options(URI uri)` Deprecated. Creates a new OPTIONS `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `patch(org.apache.hc.core5.http.HttpHost host, String path)` Deprecated. Creates a new PATCH `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `patch(String uri)` Deprecated. Creates a new PATCH `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `patch(URI uri)` Deprecated. Creates a new PATCH `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `post(org.apache.hc.core5.http.HttpHost host, String path)` Deprecated. Creates a new POST `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `post(String uri)` Deprecated. Creates a new POST `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `post(URI uri)` Deprecated. Creates a new POST `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `put(org.apache.hc.core5.http.HttpHost host, String path)` Deprecated. Creates a new PUT `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `put(String uri)` Deprecated. Creates a new PUT `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `put(URI uri)` Deprecated. Creates a new PUT `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `trace(org.apache.hc.core5.http.HttpHost host, String path)` Deprecated. Creates a new TRACE `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `trace(String uri)` Deprecated. Creates a new TRACE `BasicHttpRequest`.
    `static org.apache.hc.core5.http.message.BasicHttpRequest` | `trace(URI uri)` Deprecated. Creates a new TRACE `BasicHttpRequest`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BasicHttpRequests

          public BasicHttpRequests()

      Deprecated.

  - ### Method Detail

    - #### create

          public static org.apache.hc.core5.http.message.BasicHttpRequest create(String method,
                                                                                 String uri)

      Deprecated.
      Creates a new BasicHttpRequest for the given `method` and `String` URI.
      Parameters:
        `method` - A method supported by this class.
        `uri` - a non-null request string URI.
      Returns:
        A new BasicHttpRequest.

    - #### create

          public static org.apache.hc.core5.http.message.BasicHttpRequest create(String method,
                                                                                 URI uri)

      Deprecated.
      Creates a new BasicHttpRequest for the given `method` and `URI`.
      Parameters:
        `method` - A method supported by this class.
        `uri` - a non-null request URI.
      Returns:
        A new BasicHttpRequest.

    - #### delete

          public static org.apache.hc.core5.http.message.BasicHttpRequest delete(String uri)

      Deprecated.
      Creates a new DELETE `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### delete

          public static org.apache.hc.core5.http.message.BasicHttpRequest delete(URI uri)

      Deprecated.
      Creates a new DELETE `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### delete

          public static org.apache.hc.core5.http.message.BasicHttpRequest delete(org.apache.hc.core5.http.HttpHost host,
                                                                                 String path)

      Deprecated.
      Creates a new DELETE `BasicHttpRequest`.
      Parameters:
        `host` - HTTP host.
        `path` - request path.
      Returns:
        a new BasicHttpRequest

    - #### get

          public static org.apache.hc.core5.http.message.BasicHttpRequest get(String uri)

      Deprecated.
      Creates a new GET `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### get

          public static org.apache.hc.core5.http.message.BasicHttpRequest get(URI uri)

      Deprecated.
      Creates a new GET `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### get

          public static org.apache.hc.core5.http.message.BasicHttpRequest get(org.apache.hc.core5.http.HttpHost host,
                                                                              String path)

      Deprecated.
      Creates a new HEAD `BasicHttpRequest`.
      Parameters:
        `host` - HTTP host.
        `path` - request path.
      Returns:
        a new BasicHttpRequest

    - #### head

          public static org.apache.hc.core5.http.message.BasicHttpRequest head(String uri)

      Deprecated.
      Creates a new HEAD `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### head

          public static org.apache.hc.core5.http.message.BasicHttpRequest head(URI uri)

      Deprecated.
      Creates a new HEAD `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### head

          public static org.apache.hc.core5.http.message.BasicHttpRequest head(org.apache.hc.core5.http.HttpHost host,
                                                                               String path)

      Deprecated.
      Creates a new HEAD `BasicHttpRequest`.
      Parameters:
        `host` - HTTP host.
        `path` - request path.
      Returns:
        a new BasicHttpRequest

    - #### options

          public static org.apache.hc.core5.http.message.BasicHttpRequest options(String uri)

      Deprecated.
      Creates a new OPTIONS `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### options

          public static org.apache.hc.core5.http.message.BasicHttpRequest options(URI uri)

      Deprecated.
      Creates a new OPTIONS `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### options

          public static org.apache.hc.core5.http.message.BasicHttpRequest options(org.apache.hc.core5.http.HttpHost host,
                                                                                  String path)

      Deprecated.
      Creates a new OPTIONS `BasicHttpRequest`.
      Parameters:
        `host` - HTTP host.
        `path` - request path.
      Returns:
        a new BasicHttpRequest

    - #### patch

          public static org.apache.hc.core5.http.message.BasicHttpRequest patch(String uri)

      Deprecated.
      Creates a new PATCH `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### patch

          public static org.apache.hc.core5.http.message.BasicHttpRequest patch(URI uri)

      Deprecated.
      Creates a new PATCH `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### patch

          public static org.apache.hc.core5.http.message.BasicHttpRequest patch(org.apache.hc.core5.http.HttpHost host,
                                                                                String path)

      Deprecated.
      Creates a new PATCH `BasicHttpRequest`.
      Parameters:
        `host` - HTTP host.
        `path` - request path.
      Returns:
        a new BasicHttpRequest

    - #### post

          public static org.apache.hc.core5.http.message.BasicHttpRequest post(String uri)

      Deprecated.
      Creates a new POST `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### post

          public static org.apache.hc.core5.http.message.BasicHttpRequest post(URI uri)

      Deprecated.
      Creates a new POST `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### post

          public static org.apache.hc.core5.http.message.BasicHttpRequest post(org.apache.hc.core5.http.HttpHost host,
                                                                               String path)

      Deprecated.
      Creates a new POST `BasicHttpRequest`.
      Parameters:
        `host` - HTTP host.
        `path` - request path.
      Returns:
        a new BasicHttpRequest

    - #### put

          public static org.apache.hc.core5.http.message.BasicHttpRequest put(String uri)

      Deprecated.
      Creates a new PUT `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### put

          public static org.apache.hc.core5.http.message.BasicHttpRequest put(URI uri)

      Deprecated.
      Creates a new PUT `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### put

          public static org.apache.hc.core5.http.message.BasicHttpRequest put(org.apache.hc.core5.http.HttpHost host,
                                                                              String path)

      Deprecated.
      Creates a new PUT `BasicHttpRequest`.
      Parameters:
        `host` - HTTP host.
        `path` - request path.
      Returns:
        a new BasicHttpRequest

    - #### trace

          public static org.apache.hc.core5.http.message.BasicHttpRequest trace(String uri)

      Deprecated.
      Creates a new TRACE `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### trace

          public static org.apache.hc.core5.http.message.BasicHttpRequest trace(URI uri)

      Deprecated.
      Creates a new TRACE `BasicHttpRequest`.
      Parameters:
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### trace

          public static org.apache.hc.core5.http.message.BasicHttpRequest trace(org.apache.hc.core5.http.HttpHost host,
                                                                                String path)

      Deprecated.
      Creates a new TRACE `BasicHttpRequest`.
      Parameters:
        `host` - HTTP host.
        `path` - request path.
      Returns:
        a new BasicHttpRequest

    - #### create

          public static org.apache.hc.core5.http.message.BasicHttpRequest create(org.apache.hc.core5.http.Method method,
                                                                                 String uri)

      Deprecated.
      Creates a new `BasicHttpRequest`.
      Parameters:
        `method` - a non-null HTTP method.
        `uri` - a non-null URI String.
      Returns:
        a new BasicHttpRequest

    - #### create

          public static org.apache.hc.core5.http.message.BasicHttpRequest create(org.apache.hc.core5.http.Method method,
                                                                                 URI uri)

      Deprecated.
      Creates a new `BasicHttpRequest`.
      Parameters:
        `method` - a non-null HTTP method.
        `uri` - a non-null URI.
      Returns:
        a new BasicHttpRequest

    - #### create

          public static org.apache.hc.core5.http.message.BasicHttpRequest create(org.apache.hc.core5.http.Method method,
                                                                                 org.apache.hc.core5.http.HttpHost host,
                                                                                 String path)

      Deprecated.
      Creates a new `BasicHttpRequest`.
      Parameters:
        `method` - a non-null HTTP method.
        `host` - HTTP host.
        `path` - request path.
      Returns:
        a new subclass of BasicHttpRequest

Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.