类 Cookie

  • 所有已实现的接口:
    NameValue

    public class Cookie
    extends Object
    implements NameValue
    HTTP cookie, following RFC6265.
    • 方法详细资料

      • of

        public static Cookie of​(String name,
                                String value)
        This method is for create a particular cookie to set into Request Builder. Do not use cookie create by this method for other purposes.
        参数:
        name - the cookie name
        value - the cookie value
        返回:
        cookie
      • domain

        public String domain()
        Cookie domain
      • path

        public String path()
        Cookie path
      • secure

        public boolean secure()
      • httpOnly

        public boolean httpOnly()
      • createTime

        public Instant createTime()
      • name

        public String name()
        从接口复制的说明: NameValue
        Return the name
        指定者:
        name 在接口中 NameValue
        返回:
        the name