module WEBrick
  class Cookie
    @expires: String?

    attr_reader name: String?

    attr_accessor value: String?

    attr_accessor version: Integer

    #
    # The cookie domain
    attr_accessor domain: String?

    attr_accessor path: String?

    attr_accessor secure: true?

    attr_accessor comment: String?

    attr_accessor max_age: Integer?

    def initialize: (untyped name, untyped value) -> void

    def expires=: ((Time | _ToS)? t) -> untyped

    def expires: () -> Time?

    def to_s: () -> String

    def self.parse: (String? str) -> Array[instance]?

    def self.parse_set_cookie: (String str) -> instance

    def self.parse_set_cookies: (String str) -> Array[instance]
  end
end
