httpx/sig/utils.rbs
HoneyryderChuck db939b56d2 Adding HTTPX::Response::Body#filename
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.
2022-12-29 01:09:14 +00:00

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