File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -593,6 +593,30 @@ open class HTTPCookie : NSObject {
593
593
open var portList : [ NSNumber ] ? {
594
594
return _portList
595
595
}
596
+
597
+ open override var description : String {
598
+ var str = " < \( type ( of: self ) ) "
599
+ str += " version: \( self . _version) name: \" \( self . _name) \" value: \" \( self . _value) \" expiresDate: "
600
+ if let expires = self . _expiresDate {
601
+ str += " \( expires) "
602
+ } else {
603
+ str += " nil "
604
+ }
605
+ str += " sessionOnly: \( self . _sessionOnly) domain: \" \( self . _domain) \" path: \" \( self . _path) \" isSecure: \( self . _secure) comment: "
606
+ if let comments = self . _comment {
607
+ str += " \( comments) "
608
+ } else {
609
+ str += " nil "
610
+ }
611
+ str += " ports:{ "
612
+ if let ports = self . _portList {
613
+ str += " \( NSArray ( array: ( ports) ) . componentsJoined ( by: " , " ) ) "
614
+ } else {
615
+ str += " 0 "
616
+ }
617
+ str += " }> "
618
+ return str
619
+ }
596
620
}
597
621
598
622
//utils for cookie parsing
You can’t perform that action at this time.
0 commit comments