All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.algolia.client.transport.RequestOptions.kt Maven / Gradle / Ivy

package com.algolia.client.transport

import kotlinx.serialization.json.JsonObject
import kotlin.time.Duration

/**
 * Represents options for configuring a request to an endpoint.
 *
 * @property writeTimeout The write timeout for the request in milliseconds.
 * @property readTimeout The read timeout for the request in milliseconds.
 * @property headers A mutable map of header names to their respective values to be sent with the request.
 * @property urlParameters A mutable map of URL parameter names to their respective values to be appended to the request URL.
 * @property body A JSON object representing the request body.
 */
public data class RequestOptions(
  public val writeTimeout: Duration? = null,
  public val readTimeout: Duration? = null,
  public val headers: Map = emptyMap(),
  public val urlParameters: Map = emptyMap(),
  public val body: JsonObject? = null,
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy