class ContentDisposition
- ContentDisposition
- Reference
- Object
Defined in:
content_disposition.crConstant Summary
-
ATTACHMENT =
"attachment"
-
DEFAULT_TO_ASCII =
->(filename : String) do array = [] of Char filename.each_char do |char| array << (char.ascii? ? char : '?') end array.join end
-
INLINE =
"inline"
-
RFC_5987_ESCAPED_CHAR =
/[^A-Za-z0-9!#$&+.^_`|~-]/
-
TRADITIONAL_ESCAPED_CHAR =
/[^ A-Za-z0-9!#$+.^_`|~-]/
Constructors
Class Method Summary
- .attachment(filename = nil)
- .call(**options)
- .format(**options)
- .inline(filename = nil)
- .to_ascii : Proc(String, String)?
- .to_ascii=(to_ascii : Proc(String, String)?)
Instance Method Summary
- #ascii_filename : String?
- #disposition : String | Symbol
- #filename : String?
- #to_ascii : String -> String?
-
#to_s
Returns a string representation of this object.
- #utf8_filename : String?
Constructor Detail
def self.new(disposition : String | Symbol, filename : String?, to_ascii : Proc(String, String)? = nil)
#
Class Method Detail
Instance Method Detail
def to_s
#
Description copied from class Object
Returns a string representation of this object.
Descendants must usually not override this method. Instead,
they must override to_s(io)
, which must append to the given
IO object.