2023-03-15 14:29:15 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# typed: strict
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2025-01-12 16:56:48 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# 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
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2025-01-12 16:56:48 +00: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
							 |