Interface HttpRequest.Builder

  • Method Details

    • method

      HttpRequest.Builder method(String method)

      The HTTP method to use when making requests to the ad decision server. Supported values are GET and POST.

      Parameters:
      method - The HTTP method to use when making requests to the ad decision server. Supported values are GET and POST.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • method

      HttpRequest.Builder method(Method method)

      The HTTP method to use when making requests to the ad decision server. Supported values are GET and POST.

      Parameters:
      method - The HTTP method to use when making requests to the ad decision server. Supported values are GET and POST.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • body

      The request body content to send with HTTP requests to the ad decision server. This value is only eligible for POST requests.

      Parameters:
      body - The request body content to send with HTTP requests to the ad decision server. This value is only eligible for POST requests.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • headers

      HttpRequest.Builder headers(Map<String,String> headers)

      Custom HTTP headers to include in requests to the ad decision server. Specify headers as key-value pairs. This value is only eligible for POST requests.

      Parameters:
      headers - Custom HTTP headers to include in requests to the ad decision server. Specify headers as key-value pairs. This value is only eligible for POST requests.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • compressRequest

      HttpRequest.Builder compressRequest(String compressRequest)

      The compression method to apply to requests sent to the ad decision server. Supported values are NONE and GZIP. This value is only eligible for POST requests.

      Parameters:
      compressRequest - The compression method to apply to requests sent to the ad decision server. Supported values are NONE and GZIP. This value is only eligible for POST requests.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • compressRequest

      HttpRequest.Builder compressRequest(CompressionMethod compressRequest)

      The compression method to apply to requests sent to the ad decision server. Supported values are NONE and GZIP. This value is only eligible for POST requests.

      Parameters:
      compressRequest - The compression method to apply to requests sent to the ad decision server. Supported values are NONE and GZIP. This value is only eligible for POST requests.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: