summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.1/sig/cookie.rbs
blob: 6a7dc10fb828a068d8ea920c40d68d8d9ab592fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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