Class ClientRequest

  • All Implemented Interfaces:
    Attachable

    public final class ClientRequest
    extends AbstractAttachable
    A client request. This class should not be modified once it has been submitted to the ClientConnection. This class only represents the HTTP header, it does not represent an entity body. If the request needs an entity body then this must be specified by either setting a Content-Length or Transfer-Encoding header, otherwise the client will assume that the body is empty.
    Author:
    Stuart Douglas
    • Constructor Detail

      • ClientRequest

        public ClientRequest()
    • Method Detail

      • getRequestHeaders

        public HeaderMap getRequestHeaders()
      • getPath

        public java.lang.String getPath()
      • setPath

        public ClientRequest setPath​(java.lang.String path)
      • toString

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