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) | Nil
- .to_ascii=(to_ascii : Proc(String, String) | Nil)
Instance Method Summary
- #ascii_filename : String | Nil
- #disposition : String | Symbol
- #filename : String?
- #to_ascii : String -> String
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #utf8_filename : String | Nil
Constructor Detail
def self.new(disposition : String | Symbol, filename : String | Nil, to_ascii : Proc(String, String) | Nil = nil)
#
Class Method Detail
Instance Method Detail
def to_s
#
Description copied from class Object
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.