okhttp / okhttp3 / Cookie / Builder

Builder

class Builder

Builds a cookie. The name, value, and domain values must all be set before calling build.

Constructors

Name Summary
<init> Builds a cookie. The name, value, and domain values must all be set before calling build.Builder()

Functions

Name Summary
build fun build():Cookie
domain Set the domain pattern for this cookie. The cookie will match domain and all of its subdomains.fun domain(domain:String): Builder
expiresAt fun expiresAt(expiresAt:Long): Builder
hostOnlyDomain Set the host-only domain for this cookie. The cookie will match domain but none of its subdomains.fun hostOnlyDomain(domain:String): Builder
httpOnly fun httpOnly(): Builder
name fun name(name:String): Builder
path fun path(path:String): Builder
secure fun secure(): Builder
value fun value(value:String): Builder