Package software.amazon.awssdk.crt.http
Class HttpRequest
java.lang.Object
software.amazon.awssdk.crt.http.HttpRequestBase
software.amazon.awssdk.crt.http.HttpRequest
Represents a single Client Request to be sent on a HTTP connection
-
Constructor Summary
ConstructorsConstructorDescriptionHttpRequest
(String method, String encodedPath) HttpRequest
(String method, String encodedPath, HttpHeader[] headers, HttpRequestBodyStream bodyStream) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setEncodedPath
(String encodedPath) Sets the request's encoded pathMethods inherited from class software.amazon.awssdk.crt.http.HttpRequestBase
addHeader, addHeader, addHeaders, getBodyStream, getHeaders, getHeadersAsArray
-
Constructor Details
-
HttpRequest
- Parameters:
method
- http verb to useencodedPath
- path of the http request
-
HttpRequest
public HttpRequest(String method, 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 Details
-
getMethod
- Returns:
- the HTTP method of this request
-
getEncodedPath
- Returns:
- the encoded path of this request
-
setEncodedPath
Sets the request's encoded path- Parameters:
encodedPath
- the new encoded path
-