Package com.couchbase.client.kotlin.http

Types

Link copied to clipboard
@Stability.Volatile
class CouchbaseHttpClient

Specialized HTTP client for the Couchbase Server REST API. An instance is available as Cluster.httpClient.

Link copied to clipboard
class CouchbaseHttpResponse
Link copied to clipboard
typealias Header = Pair<String, String>

An HTTP header is represented as a pair of header name to value.

Link copied to clipboard
class HttpBody
Link copied to clipboard
class HttpTarget

Determines which host and port an HTTP request is dispatched to. Use the companion factory methods to create new instances.

Link copied to clipboard
class NameValuePairs

Represents a query string or form data.

Functions

Link copied to clipboard
fun formatPath(template: String, vararg args: String): String

Replaces each {} placeholder in the template string with the URL-encoded form of the corresponding additional argument.

fun formatPath(template: String, args: List<String>): String

Replaces each {} placeholder in the template string with the URL-encoded form of the corresponding list element.

Link copied to clipboard
fun urlEncode(s: String): String