Class NetworkRequest.PostRequest
-
- All Implemented Interfaces:
public final class NetworkRequest.PostRequest extends NetworkRequest
Represents a POST request.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringurlprivate final Map<String, String>headersprivate final TimeoutConfigtimeoutsprivate RequestBodybodyprivate final RetryPolicyretryPolicyprivate final BooleanfollowRedirectsprivate final StringmethodType
-
Constructor Summary
Constructors Constructor Description NetworkRequest.PostRequest(String url, Map<String, String> headers, TimeoutConfig timeouts, RequestBody body, RetryPolicy retryPolicy, Boolean followRedirects)
-
Method Summary
Modifier and Type Method Description StringgetUrl()The URL of the POST request. UnitsetUrl(String url)The URL of the POST request. Map<String, String>getHeaders()The headers of the POST request. TimeoutConfiggetTimeouts()The timeout configuration for the POST request. final RequestBodygetBody()The body of the POST request. final UnitsetBody(RequestBody body)The body of the POST request. RetryPolicygetRetryPolicy()The retry policy for the POST request. BooleangetFollowRedirects()Flag indicating whether to follow redirects for the POST request. StringtoString()-
-
Constructor Detail
-
NetworkRequest.PostRequest
NetworkRequest.PostRequest(String url, Map<String, String> headers, TimeoutConfig timeouts, RequestBody body, RetryPolicy retryPolicy, Boolean followRedirects)
-
-
Method Detail
-
getHeaders
Map<String, String> getHeaders()
The headers of the POST request.
-
getTimeouts
TimeoutConfig getTimeouts()
The timeout configuration for the POST request.
-
getBody
final RequestBody getBody()
The body of the POST request.
-
setBody
final Unit setBody(RequestBody body)
The body of the POST request.
-
getRetryPolicy
RetryPolicy getRetryPolicy()
The retry policy for the POST request.
-
getFollowRedirects
Boolean getFollowRedirects()
Flag indicating whether to follow redirects for the POST request.
-
-
-
-