/*
Copyright (c) [2023] [squallzhao]
fountain is licensed under APACHE LICENSE, VERSION 2.0.
You can use this software according to the terms and conditions of the APACHE LICENSE, VERSION 2.0.
You may obtain a copy of APACHE LICENSE, VERSION 2.0 at: https://www.apache.org/licenses/LICENSE-2.0
*/
package microservice.web.http11
public class Cookie{
public var name: String;
public var value: String;
public var version: Int32 = 0;
public var comment: String = "";
public var domain: String = "";
public var maxAge: Int32 = -1;
public var path: String = "";
public var secure: Bool = false;
public var httpOnly: Bool = false;
public init(name:String, value:String){
this.name = name
this.value = value
}
public func toString(): String{
return name +"="+value+";"
}
}