Package software.amazon.awssdk.crt.http
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 Summary
Constructors Constructor Description HttpRequest(java.lang.String method, java.lang.String encodedPath)
HttpRequest(java.lang.String method, java.lang.String encodedPath, HttpHeader[] headers, HttpRequestBodyStream bodyStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEncodedPath()
java.lang.String
getMethod()
void
setEncodedPath(java.lang.String encodedPath)
Sets the request's encoded path-
Methods inherited from class software.amazon.awssdk.crt.http.HttpRequestBase
addHeader, addHeader, addHeaders, getBodyStream, getHeaders, getHeadersAsArray
-
-
-
-
Constructor Detail
-
HttpRequest
public HttpRequest(java.lang.String method, java.lang.String encodedPath)
- Parameters:
method
- http verb to useencodedPath
- path of the http request
-
HttpRequest
public HttpRequest(java.lang.String method, java.lang.String encodedPath, HttpHeader[] headers, HttpRequestBodyStream bodyStream)
- Parameters:
method
- http verb to useencodedPath
- path of the http requestheaders
- set of http request headers to includebodyStream
- (optional) interface to an object that will stream out the request body
-
-
Method Detail
-
getMethod
public java.lang.String getMethod()
- Returns:
- the HTTP method of this request
-
getEncodedPath
public java.lang.String getEncodedPath()
- Returns:
- the encoded path of this request
-
setEncodedPath
public void setEncodedPath(java.lang.String encodedPath)
Sets the request's encoded path- Parameters:
encodedPath
- the new encoded path
-
-