Class NetworkRequest.HeadRequest
-
- All Implemented Interfaces:
public final class NetworkRequest.HeadRequest extends NetworkRequest
Represents a HEAD request.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringurlprivate final Map<String, String>headersprivate final TimeoutConfigtimeoutsprivate final RetryPolicyretryPolicyprivate final BooleanfollowRedirectsprivate final StringmethodType
-
Constructor Summary
Constructors Constructor Description NetworkRequest.HeadRequest(String url, Map<String, String> headers, TimeoutConfig timeouts, 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. RetryPolicygetRetryPolicy()The retry policy for the POST request. BooleangetFollowRedirects()Flag indicating whether to follow redirects for the POST request. -
-
Constructor Detail
-
NetworkRequest.HeadRequest
NetworkRequest.HeadRequest(String url, Map<String, String> headers, TimeoutConfig timeouts, 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.
-
getRetryPolicy
RetryPolicy getRetryPolicy()
The retry policy for the POST request.
-
getFollowRedirects
Boolean getFollowRedirects()
Flag indicating whether to follow redirects for the POST request.
-
-
-
-