com.cloudinary.http.HttpClient.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-uploader Show documentation
Show all versions of kotlin-uploader Show documentation
Cloudinary is a cloud service that offers a solution to a web application's entire image management pipeline. Upload images to the cloud. Automatically perform smart image resizing, cropping and conversion without installing any complex software. Integrate Facebook or Twitter profile image extraction in a snap, in any dimension and style to match your websiteâs graphics requirements. Images are seamlessly delivered through a fast CDN, and much much more. This Java library allows to easily integrate with Cloudinary in Kotlin applications.
The newest version!
package com.cloudinary.http
import java.net.URL
typealias ProgressCallback = ((bytesUploaded: Long, totalBytes: Long) -> Unit)
interface HttpClient {
fun get(url: URL, headers: Map = HashMap()): HttpResponse?
fun post(url: URL, headers: Map, entity: MultipartEntity): HttpResponse?
fun post(
url: URL,
headers: Map,
entity: MultipartEntity,
progressCallback: ProgressCallback?
): HttpResponse
}
data class HttpResponse(
val httpStatusCode: Int,
val content: String?,
val headers: Map
)