Interface HttpRequestFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      RawResponse execute​(java.lang.String userAgent, java.util.Optional<java.lang.String> accessToken, HttpMethod method, java.net.URI uri, java.lang.Object body)
      Execute an HTTP request to an API endpoint
    • Method Detail

      • execute

        RawResponse execute​(java.lang.String userAgent,
                            java.util.Optional<java.lang.String> accessToken,
                            HttpMethod method,
                            java.net.URI uri,
                            java.lang.Object body)
        Execute an HTTP request to an API endpoint
        Parameters:
        userAgent - the user agent to be used on the HTTP request
        accessToken - the access token to be used for authentication against the API
        method - the HTTP method to be used on the HTTP request
        uri - the URI to be requested
        body - the HTTP request's body payload
        Returns:
        an RawResponse object with the status code, headers and body of the HTTP response