package
4.3.3
Repository: https://github.com/go-kivik/kivik.git
Documentation: pkg.go.dev

# Functions

BasicAuth provides HTTP Basic Auth for a client.
BodyEncoder returns a function which returns the encoded body.
CloseBody consumes the rest of the request body, then closes it, discarding any errors.
ContextClientTrace returns the ClientTrace associated with the provided context.
CookieAuth provides CouchDB [Cookie auth].
DecodeJSON unmarshals the response body into i.
EncodeBody JSON encodes i to an io.ReadCloser.
EncodeDocID encodes a document ID according to CouchDB's path encoding rules.
ETag returns the unquoted ETag value, and a bool indicating whether it was found.
ExtractRev extracts the _rev field from r, while reading into a buffer, then returns a re-assembled ReadCloser, containing the buffer plus any unread bytes still on the network, along with the document revision.
GetRev extracts the revision from the response's Etag header, if found.
JWTAuth provides JWT based auth for a client.
New returns a connection to a remote CouchDB server.
NewOptions converts a kivik options map into.
OptionFullCommit is the option key used to set the `X-Couch-Full-Commit` header in the request when set to true.
OptionIfNoneMatch is an option key to set the `If-None-Match` header on the request.
OptionNoRequestCompression instructs the CouchDB client not to use gzip compression for request bodies sent to the server.
OptionUserAgent may be passed as an option when creating a client object, to append to the default User-Agent header sent on all requests.
ProxyAuth provides support for CouchDB's [proxy authentication].
ResponseError returns an error from an *http.Response if the status code indicates an error.
WithClientTrace returns a new context based on the provided parent ctx.

# Constants

Standard headers used by CouchDB.
Standard headers used by CouchDB.

# Structs

Client represents a client connection.
ClientTrace is a set of hooks to run at various stages of an outgoing HTTP request.
HTTPError is an error that represents an HTTP transport error.
Options are optional parameters which may be sent with a request.
Response represents a response from a CouchDB server.