org.apache.hc.core5.http.message

## Class RequestLine

- java.lang.Object
- - org.apache.hc.core5.http.message.RequestLine

- All Implemented Interfaces:
    Serializable

      @Contract(threading=IMMUTABLE)
      public final class RequestLine
      extends Object
      implements Serializable

  HTTP/1.1 request line.
  Since:
    4.0
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `RequestLine(HttpRequest request)`
    `RequestLine(String method, String uri, ProtocolVersion version)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getMethod()`
    `ProtocolVersion` | `getProtocolVersion()`
    `String` | `getUri()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### RequestLine

          public RequestLine(HttpRequest request)

    - #### RequestLine

          public RequestLine(String method,
                     String uri,
                     ProtocolVersion version)

  - ### Method Detail

    - #### getMethod

          public String getMethod()

    - #### getProtocolVersion

          public ProtocolVersion getProtocolVersion()

    - #### getUri

          public String getUri()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.