@@ -140,6 +140,7 @@ module HTTP
140140 def include? : (untyped name) -> bool
141141 def to_h : () -> Hash[String, untyped ]
142142 alias to_hash to_h
143+ def deconstruct_keys : (Array[Symbol]? keys) -> Hash[Symbol, untyped ]
143144 def to_a : () -> Array[Array[String]]
144145 def inspect : () -> String
145146 def keys : () -> Array[String]
@@ -213,6 +214,7 @@ module HTTP
213214 public
214215
215216 def initialize : (?String? mime_type, ?String? charset) -> void
217+ def deconstruct_keys : (Array[Symbol]? keys) -> Hash[Symbol, untyped ]
216218 end
217219
218220 class Feature
@@ -480,6 +482,7 @@ module HTTP
480482 def to_s : () -> String
481483 alias to_str to_s
482484 def inspect : () -> String
485+ def deconstruct_keys : (Array[Symbol]? keys) -> Hash[Symbol, untyped ]
483486
484487 # Delegated methods from Addressable::URI
485488 def scheme : () -> String?
@@ -659,6 +662,8 @@ module HTTP
659662 def connection : () -> untyped
660663 def uri : () -> URI
661664 def to_a : () -> Array[untyped ]
665+ alias deconstruct to_a
666+ def deconstruct_keys : (Array[Symbol]? keys) -> Hash[Symbol, untyped ]
662667 def flush : () -> Response
663668 def content_length : () -> Integer?
664669 def content_type : () -> ContentType
@@ -702,6 +707,7 @@ module HTTP
702707 def server_error? : () -> bool
703708 def to_sym : () -> Symbol?
704709 def inspect : () -> String
710+ def deconstruct_keys : (Array[Symbol]? keys) -> Hash[Symbol, untyped ]
705711 def __setobj__ : (untyped obj) -> void
706712 def __getobj__ : () -> Integer
707713 end
0 commit comments