brew/Library/Homebrew/download_strategy.rbi

21 lines
696 B
Plaintext
Raw Normal View History

2023-03-15 14:29:15 -07:00
# typed: strict
# This is a third-party implementation.
2024-02-18 15:47:56 -08:00
# rubocop:disable Lint/StructNewOverride
2024-01-31 09:33:30 -08:00
class Mechanize::HTTP
ContentDisposition = Struct.new :type, :filename, :creation_date,
2024-02-18 15:47:56 -08:00
:modification_date, :read_date, :size, :parameters
2024-01-31 09:33:30 -08:00
end
2024-02-18 15:47:56 -08:00
# rubocop:enable Lint/StructNewOverride
2024-01-31 09:33:30 -08:00
# This is a third-party implementation.
2024-02-18 15:47:56 -08:00
# rubocop:disable Style/OptionalBooleanParameter
2024-01-31 09:33:30 -08:00
class Mechanize::HTTP::ContentDispositionParser
sig {
params(content_disposition: String, header: T::Boolean)
2024-02-18 15:47:56 -08:00
.returns(T.nilable(Mechanize::HTTP::ContentDisposition))
2024-01-31 09:33:30 -08:00
}
def parse(content_disposition, header = false); end
end
2024-02-18 15:47:56 -08:00
# rubocop:enable Style/OptionalBooleanParameter