Package com.dnsimple.http.java11
Class Java11HttpRequestFactory
java.lang.Object
com.dnsimple.http.java11.Java11HttpRequestFactory
- All Implemented Interfaces:
HttpRequestFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute an HTTP request to an API endpoint
-
Constructor Details
-
Java11HttpRequestFactory
public Java11HttpRequestFactory()
-
-
Method Details
-
execute
public RawResponse execute(String userAgent, Optional<String> accessToken, HttpMethod method, URI uri, Object body) Description copied from interface:HttpRequestFactoryExecute an HTTP request to an API endpoint- Specified by:
executein interfaceHttpRequestFactory- 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
-