mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -04:00
This returns the filename advertised in the content-disposition header. It reuses the same logic which existed for parsing multipart responses, which itself was based on `rack`'s.
15 lines
342 B
Plaintext
15 lines
342 B
Plaintext
module HTTPX
|
|
module Utils
|
|
URIParser: URI::RFC2396_Parser
|
|
|
|
def self?.parse_retry_after: (String) -> Numeric
|
|
|
|
def self?.now: () -> Float
|
|
|
|
def self?.elapsed_time: (Integer | Float monotonic_time) -> Float
|
|
|
|
def self?.to_uri: (generic_uri uri) -> URI::Generic
|
|
|
|
def self?.get_filename: (String header) -> String?
|
|
end
|
|
end |