cookie

open override fun cookie(cookie: String)

Adds a single cookie to the request.

The cookie string must be in Set-Cookie header format. This is a convenience method for adding a single cookie instead of a list.

Parameters

cookie

Cookie string in Set-Cookie header format.

See also

For adding multiple cookies at once.