Class NSHTTPCookie

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class NSHTTPCookie
extends NSObject
  • Constructor Details

  • Method Details

    • getProperties

      public NSHTTPCookieAttributes getProperties()
    • getVersion

      public long getVersion()
    • getName

      public String getName()
    • getValue

      public String getValue()
    • getExpiresDate

      public NSDate getExpiresDate()
    • isSessionOnly

      public boolean isSessionOnly()
    • getDomain

      public String getDomain()
    • getPath

      public String getPath()
    • isSecure

      public boolean isSecure()
    • isHTTPOnly

      public boolean isHTTPOnly()
    • getComment

      public String getComment()
    • getCommentURL

      public NSURL getCommentURL()
    • getPortList

      public List<Integer> getPortList()
    • getSameSitePolicy

      public String getSameSitePolicy()
      Since:
      Available in iOS 13.0 and later.
    • init

      protected long init​(NSHTTPCookieAttributes properties)
    • getRequestHeaderFieldsWithCookies

      public static Map<String,​String> getRequestHeaderFieldsWithCookies​(NSArray<NSHTTPCookie> cookies)
    • getCookiesWithResponseHeaderFields

      public static NSArray<NSHTTPCookie> getCookiesWithResponseHeaderFields​(Map<String,​String> headerFields, NSURL url)