Class HttpBuilder

java.lang.Object
co.privacyone.sdk.restapi.util.HttpBuilder

public class HttpBuilder extends Object
  • Field Details

  • Constructor Details

    • HttpBuilder

      public HttpBuilder()
  • Method Details

    • buildHttpUrl

      public static okhttp3.HttpUrl buildHttpUrl(String host, String pathSegments)
    • buildHttpUrl

      public static okhttp3.HttpUrl buildHttpUrl(String host, int port, String pathSegments)
    • buildHttpUrl

      public static okhttp3.HttpUrl buildHttpUrl(String host, int port, String pathSegments, Map<String,String> parameters)
    • buildHttpsUrl

      public static okhttp3.HttpUrl buildHttpsUrl(String host, int port, String pathSegments)
    • buildHttpsUrl

      public static okhttp3.HttpUrl buildHttpsUrl(String host, int port, String pathSegments, Map<String,String> parameters)
    • buildHttpHeaders

      public static okhttp3.Headers buildHttpHeaders(Map<String,String> headers)
    • buildJsonRequestBody

      public static okhttp3.RequestBody buildJsonRequestBody(String jsonBody)
    • buildProtobufRequestBody

      public static okhttp3.RequestBody buildProtobufRequestBody(byte[] bytes)