Http Connection
class HttpConnection(url: String, method: HttpRequestMethod, bodyMap: Map<*, *>?, bodyString: String?, contentType: String?, headers: List<HttpHeader>, api: GenericSpotifyApi?)
Content copied to clipboard
Provides a fast, easy, and slim way to execute and retrieve HTTP GET, POST, PUT, and DELETE requests
Constructors
HttpConnection
Link copied to clipboard
fun HttpConnection(url: String, method: HttpRequestMethod, bodyMap: Map<*, *>?, bodyString: String?, contentType: String?, headers: List<HttpHeader> = listOf(), api: GenericSpotifyApi? = null)
Content copied to clipboard
Functions
buildRequest
Link copied to clipboard
fun buildRequest(additionalHeaders: List<HttpHeader>?): HttpRequestBuilder
Content copied to clipboard
execute
Link copied to clipboard
suspend fun execute(additionalHeaders: List<HttpHeader>? = null, retryIfInternalServerError: Boolean = true): HttpResponse
Content copied to clipboard
toByteArrayContent
Link copied to clipboard
Properties
api
Link copied to clipboard
bodyString
Link copied to clipboard
contentType
Link copied to clipboard
headers
Link copied to clipboard
method
Link copied to clipboard
Sources
(source)
Link copied to clipboard