Class HttpRequest

java.lang.Object
software.amazon.awssdk.crt.http.HttpRequestBase
software.amazon.awssdk.crt.http.HttpRequest

public class HttpRequest extends HttpRequestBase
Represents a single Client Request to be sent on a HTTP connection
  • Constructor Details

    • HttpRequest

      public HttpRequest(String method, String encodedPath)
      Parameters:
      method - http verb to use
      encodedPath - path of the http request
    • HttpRequest

      public HttpRequest(String method, String encodedPath, HttpHeader[] headers, HttpRequestBodyStream bodyStream)
      Parameters:
      method - http verb to use
      encodedPath - path of the http request
      headers - set of http request headers to include
      bodyStream - (optional) interface to an object that will stream out the request body
  • Method Details

    • getMethod

      public String getMethod()
      Returns:
      the HTTP method of this request
    • getEncodedPath

      public String getEncodedPath()
      Returns:
      the encoded path of this request
    • setEncodedPath

      public void setEncodedPath(String encodedPath)
      Sets the request's encoded path
      Parameters:
      encodedPath - the new encoded path