Package com.dnsimple.http
Interface HttpRequestFactory
- All Known Implementing Classes:
Java11HttpRequestFactory
public interface HttpRequestFactory
This interface defined the low level HTTP operations required by this library
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionExecute an HTTP request to an API endpoint
-
Method Details
-
execute
RawResponse execute(String userAgent, Optional<String> accessToken, HttpMethod method, URI uri, Object body) Execute an HTTP request to an API endpoint- Parameters:
userAgent- the user agent to be used on the HTTP requestaccessToken- the access token to be used for authentication against the APImethod- the HTTP method to be used on the HTTP requesturi- the URI to be requestedbody- the HTTP request's body payload- Returns:
- an RawResponse object with the status code, headers and body of the HTTP response
-