Interface RestClient

All Known Implementing Classes:
RestClientWrapper

public interface RestClient
  • Method Summary

    Modifier and Type
    Method
    Description
    okhttp3.Response
    get(String url)
    Executes an HTTP GET.
    okhttp3.Response
    post(String url, String body)
    Executes an HTTP POST.
  • Method Details

    • get

      okhttp3.Response get(String url) throws IOException
      Executes an HTTP GET.
      Parameters:
      url - request URL
      Returns:
      a Response object that the caller is responsible for closing.
      Throws:
      IOException
    • post

      okhttp3.Response post(String url, String body) throws IOException
      Executes an HTTP POST.
      Parameters:
      url - request URL.
      body - request body.
      Returns:
      a Response object that the caller is responsible for closing.
      Throws:
      IOException